Skip to content
GitHub

MessageToResolve

interface in meocord/testing Since 4.1.0

interface MessageToResolve

A message, as resolveRoute takes it.

Members

content

content: string

The message's text, prefix included.

prefix

prefix?: MessagePrefix

The 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?: string

The bot's user id, so a mention of it counts as a start when the app accepts one.

dm

dm?: boolean

Whether 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.