Message

Undocumented in source.

Constructors

this
this(Client client, JSON obj)
Undocumented in source.
this
this(Channel channel, JSON obj)
Undocumented in source.

Members

Functions

del
void del()
Undocumented in source. Be warned that the author may not have intended to support it.
edit
Message edit(string content)
Undocumented in source. Be warned that the author may not have intended to support it.
init
void init()
Undocumented in source. Be warned that the author may not have intended to support it.
load
void load(JSON obj)
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, Role) fr)

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

reply
Message reply(string content, string nonce, bool tts)
Undocumented in source. Be warned that the author may not have intended to support it.
replyf
Message replyf(string content, T args)
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.

Properties

customEmojiByID
Snowflake[] customEmojiByID [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
guild
Guild guild [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mentioned
bool mentioned [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

attachments
MessageAttachment[] attachments;
Undocumented in source.
author
User author;
Undocumented in source.
channel
Channel channel;
Undocumented in source.
channelID
Snowflake channelID;
Undocumented in source.
content
string content;
Undocumented in source.
editedTimestamp
string editedTimestamp;
Undocumented in source.
embeds
MessageEmbed[] embeds;
Undocumented in source.
id
Snowflake id;
Undocumented in source.
mentionEveryone
bool mentionEveryone;
Undocumented in source.
mentions
UserMap mentions;
Undocumented in source.
nonce
string nonce;
Undocumented in source.
pinned
bool pinned;
Undocumented in source.
roleMentions
RoleMap roleMentions;
Undocumented in source.
timestamp
string timestamp;
Undocumented in source.
tts
bool tts;
Undocumented in source.

Mixed In Members

From mixin Model

this
this(Client client, JSON obj)
Undocumented in source.
after
auto after(Duration delay)
Undocumented in source. Be warned that the author may not have intended to support it.
chain
auto chain()
Undocumented in source. Be warned that the author may not have intended to support it.
call
void call(T args)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From IModel

client
Client client;
Undocumented in source.
init
void init()
Undocumented in source. Be warned that the author may not have intended to support it.
load
void load(JSON obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta