DMMessage class

Message that is sent in dm channel or group dm channel

Inheritance

Properties

attachments List<Attachment>
The attachments in the message.
read / write, final, late, inherited
author User
The message's author. Can be instance of CacheMember
read / write, final, late, override-getter
channel ITextChannel
Channel in which message was sent
read / write, final, late, inherited
channelId Snowflake
Id of channel in which message was sent
read / write, final, late, inherited
client Nyxx
Reference to bot instance
read / write, inherited
content String
The message's content.
read / write, inherited
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
editedTimestamp DateTime
The timestamp of when the message was last edited, null if not edited.
read / write, final, late, inherited
embeds List<Embed>
A collection of the embeds in the message.
read / write, inherited
flags MessageFlags
Extra features of the message
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
mentionEveryone bool
Whether or @everyone was mentioned in the message.
read / write, final, late, inherited
mentions List<User>
The mentions in the message. User value of this map can be CacheMember
read / write, inherited
pinned bool
Whether or not the message is pinned.
read / write, final, late, inherited
reactions List<Reaction>
List of message reactions
read / write, final, late, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tts bool
Whether or not the message was sent with TTS enabled.
read / write, final, late, inherited
type MessageType
Type of message
read / write, final, late, inherited
url String
Returns clickable url to this message.
read-only, override

Methods

createReaction(Emoji emoji) Future<void>
Add reaction to message.
inherited
delete({String auditReason}) Future<void>
Deletes the message. [...]
inherited
deleteAllReactions() Future<void>
Deletes all reactions
inherited
deleteReaction(Emoji emoji) Future<void>
Deletes reaction of bot. Emoji as ":emoji_name:"
inherited
deleteUserReaction(Emoji emoji, String userId) Future<void>
Deletes reaction of given user.
inherited
dispose() Future<void>
Perform cleanup
inherited
edit({dynamic content, EmbedBuilder embed, AllowedMentions allowedMentions, MessageEditBuilder builder}) Future<Message>
Edits the message.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pinMessage() Future<void>
Pins Message in current Channel
inherited
suppressEmbeds() Future<Message>
Suppresses embeds in message. Can be executed in other users messages.
inherited
toString() String
Returns content of message
inherited
unpinMessage() Future<void>
Unpins Message in current Channel
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited