MessageToResolve
interface in meocord/testing Since 4.1.0
interface MessageToResolveA message, as resolveRoute takes it.
Members
content
content: stringThe message's text, prefix included.
prefix
prefix?: MessagePrefixThe prefix this message has, for an app that reads prefixes from a function; ignored otherwise unless given, when it stands in for the app's.
botId
botId?: stringThe bot's user id, so a mention of it counts as a start when the app accepts one.
dm
dm?: booleanWhether the message is a direct message, where mention: 'only' does not apply, and a handler that works only in
a server, by its scope or a member, role or channel param in its pattern, is not reached, as dispatch answers
it with its usage. A flag of those types is refused only when the message gives it, which this does not read.
Without it the message may be from anywhere, and a mention alone starts what it starts in a server.