Message

Members

Functions

canDelete
bool canDelete()

Whether the bot can edit this message

canEdit
bool canEdit()

Whether the bot can edit this message

del
void del()

Deletes this message.

edit
Message edit(inout(string) content, inout(MessageEmbed) embed = null)

Edits this message contents.

edit
Message edit(Sendable obj)

Edits this message contents with a Sendable.

replaceMentions
string replaceMentions(string delegate(Message, User) fu, string delegate(Message, Snowflake) fr)

Returns the message contents, replacing all mentions with the result from the specified delegate.

reply
Message reply(inout(string) content, string nonce = null, bool tts = false)

Sends a new message to the same channel as this message.

reply
Message reply(Sendable obj)

Sends a Sendable to the same channel as this message.

replyf
Message replyf(inout(string) content, T args)

Sends a new formatted message to the same channel as this message.

Properties

customEmojiByID
Snowflake[] customEmojiByID [@property getter]

Returns an array of emoji IDs for all custom emoji used in this message.

mentioned
bool mentioned [@property getter]

True if this message mentions the current user in any way (everyone, direct mention, role mention)

Meta