Skip to content
GitHub

ResponseContext

interface in meocord/interface Since 4.1.0

interface ResponseContext

What a presenter knows about the interaction it renders for.

Members

interaction

interaction: Interaction

The interaction being answered.

locale

locale: string

The locale of the user who made the interaction.

mode

mode: 'embed' | 'v2'

Whether the view is rendered as an embed or as a Components V2 container.

theme

theme: DeepReadonly<MeoCordTheme>

The theme of the call being answered, to style the view from: the same one useTheme() returns in it.