Skip to content
GitHub

MessageResponseContext

interface in meocord/interface Since 4.1.0

interface MessageResponseContext

What a presenter knows about the message command it renders an error reply for, in ResponsePresenter.messageError.

Members

message

message: Message

The message being answered.

locale

locale: string

The locale the reply is in: the server's preferred locale, or the translator's default in a DM.

mode

mode: 'embed'

How the view is rendered: a reply to a message is a new message, drawn as an embed.

theme

theme: DeepReadonly<MeoCordTheme>

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