Message class Null safety

Inheritance
Implemented types
Implementers

Properties

attachments List<Attachment>
The attachments in the message.
read / write, final, late
author IMessageAuthor
The message's author.
read-only
channel Cacheable<Snowflake, TextChannel>
Channel in which message was sent
read / write, final, late
client Nyxx
Reference to bot instance
final
content String
The message's content.
read / write
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
embeds List<Embed>
A collection of the embeds in the message.
read / write
flags MessageFlags?
Extra features of the message
read / write, final, late
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
mentions List<Cacheable<Snowflake, User>>
The mentions in the message.
read / write
pinned bool
Whether or not the message is pinned.
read / write, final, late
reactions List<Reaction>
List of message reactions
read / write, final, late
referencedMessage ReferencedMessage?
Message reply
read / write, final, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stickers Iterable<Sticker>
The stickers sent with the message
read / write, final, late
tts bool
Whether or not the message was sent with TTS enabled.
read / write, final, late
type MessageType
Type of message
read / write, final, late
url String
Returns clickable url to this message.
read-only

Methods

createReaction(IEmoji emoji) Future<void>
Add reaction to message.
delete({String? auditReason}) Future<void>
Deletes the message.
deleteAllReactions() Future<void>
Deletes all reactions
deleteSelfReaction(IEmoji emoji) Future<void>
Deletes reaction of bot.
deleteUserReaction(IEmoji emoji, SnowflakeEntity entity) Future<void>
Deletes reaction of given user.
dispose() Future<void>
Perform cleanup
override
edit({dynamic content, EmbedBuilder? embed, AllowedMentions? allowedMentions, MessageEditBuilder? builder}) Future<Message>
Edits the message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pinMessage() Future<void>
Pins Message in message's channel
suppressEmbeds() Future<Message>
Suppresses embeds in message. Can be executed in other users messages.
toString() String
A string representation of this object. [...]
inherited
unpinMessage() Future<void>
Unpins Message in message's channel

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override