Message

Undocumented in source.

Members

Functions

canDelete
bool canDelete()

Whether the bot can delete this message.

canEdit
bool canEdit()

Whether the bot can edit this message.

channel
Channel channel()

Get the channel that the message is from

customEmojiByID
Snowflake[] customEmojiByID()

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

del
void del()

Deletes this message.

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

Edits this message contents.

edit
Message edit(Sendable obj)

Edits this message contents with a Sendable.

guild
Guild guild()

Get the guild that the message is from

mentioned
bool mentioned()

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

react
void react(string emoji)

Undocumented in source. Be warned that the author may not have intended to support it.

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, bool tts)

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.

toString
string toString()

Undocumented in source. Be warned that the author may not have intended to support it.

withProperMentions
string withProperMentions(bool nicks)

Undocumented in source. Be warned that the author may not have intended to support it.

withoutMentions
string withoutMentions()

Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin Model

Undocumented in source.

Variables

attachments
MessageAttachment[] attachments;

Undocumented in source.

author
User author;

Undocumented in source.

channelID
Snowflake channelID;

Undocumented in source.

content
string content;

Undocumented in source.

editedTimestamp
SysTime editedTimestamp;

Undocumented in source.

embeds
MessageEmbed[] embeds;

Undocumented in source.

id
Snowflake id;

Undocumented in source.

member
GuildMember member;

Undocumented in source.

mentionEveryone
bool mentionEveryone;

Undocumented in source.

mentions
UserMap mentions;

Undocumented in source.

nonce
VibeJSON nonce;

Undocumented in source.

pinned
bool pinned;

Undocumented in source.

roleMentions
Snowflake[] roleMentions;

Undocumented in source.

timestamp
SysTime timestamp;

Undocumented in source.

tts
bool tts;

Undocumented in source.

Mixed In Members

From mixin Model

Meta