Message class Null safety

Implemented types


applicationId Snowflake?
If the message is a response to an Interaction, this is the id of the interaction's application
final, read / write, late
attachments List<Attachment>
The attachments in the message.
final, read / write, late
author IMessageAuthor
The message's author.
channel CacheableTextChannel<TextChannel>
Channel in which message was sent
final, read / write, late
client INyxx
Reference to bot instance
components List<List<IMessageComponent>>
List of components attached to message.
final, read / write, late
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.
final, read / write, late
embeds List<Embed>
A collection of the embeds in the message.
read / write
flags MessageFlags?
Extra features of the message
final, read / write, late
hashCode int
The hash code for this object. [...]
read-only, override
id Snowflake
ID of entity as Snowflake
final, inherited
mentionEveryone bool
Whether or @everyone was mentioned in the message.
final, read / write, late
mentions List<Cacheable<Snowflake, User>>
The mentions in the message.
read / write
nonce String?
A nonce that can be used for optimistic message sending (up to 25 characters) You will be able to identify that message when receiving it through gateway
final, read / write, late
partialStickers Iterable<PartialSticker>
The stickers sent with the message
final, read / write, late
pinned bool
Whether or not the message is pinned.
final, read / write, late
reactions List<Reaction>
List of message reactions
final, read / write, late
referencedMessage ReferencedMessage?
Message reply
final, read / write, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamps Iterable<MessageTimeStamp>
Inline timestamps of current message
tts bool
Whether or not the message was sent with TTS enabled.
final, read / write, late
type MessageType
Type of message
final, read / write, late
url String
Returns clickable url to this message.


createAndGetThread(ThreadBuilder builder) Future<ThreadChannel>
Creates a thread in a message
createReaction(IEmoji emoji) Future<void>
Add reaction to message.
createThread(ThreadBuilder builder) Future<ThreadPreviewChannel>
Creates a thread based on this message, that only retrieves a ThreadPreviewChannel
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
edit(MessageBuilder builder) Future<Message>
Edits the message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
pinMessage() Future<void>
Pins Message in message's channel
suppressEmbeds() Future<Message>
Suppresses embeds in message. Can be executed in other users messages.
toBuilder() MessageBuilder
Returns instance of Builder with current data
toString() String
A string representation of this object. [...]
unpinMessage() Future<void>
Unpins Message in message's channel


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