DMMessage class Null safety

Message that is sent in dm channel or group dm channel

Inheritance

Properties

applicationId Snowflake?
If the message is a response to an Interaction, this is the id of the interaction's application
late, final, inherited
attachments List<Attachment>
The attachments in the message.
late, final, inherited
author User
The message's author.
late, final, override-getter
channel CacheableTextChannel<TextChannel>
Channel in which message was sent
late, final, inherited
client INyxx
Reference to bot instance
final, inherited
components List<List<IMessageComponent>>
List of components attached to message.
late, final, 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.
late, final, inherited
embeds List<Embed>
A collection of the embeds in the message.
read / write, inherited
flags MessageFlags?
Extra features of the message
late, final, 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.
late, final, inherited
mentions List<Cacheable<Snowflake, User>>
The mentions in the message.
read / write, inherited
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
late, final, inherited
partialStickers Iterable<PartialSticker>
The stickers sent with the message
late, final, inherited
pinned bool
Whether or not the message is pinned.
late, final, inherited
reactions List<Reaction>
List of message reactions
late, final, inherited
referencedMessage ReferencedMessage?
Message reply
late, final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamps Iterable<MessageTimeStamp>
Inline timestamps of current message
read-only, inherited
tts bool
Whether or not the message was sent with TTS enabled.
late, final, inherited
type MessageType
Type of message
late, final, inherited
url String
Returns clickable url to this message.
read-only, override

Methods

createAndGetThread(ThreadBuilder builder) Future<ThreadChannel>
Creates a thread in a message
inherited
createReaction(IEmoji emoji) Future<void>
Add reaction to message.
inherited
createThread(ThreadBuilder builder) Future<ThreadPreviewChannel>
Creates a thread based on this message, that only retrieves a ThreadPreviewChannel
inherited
delete({String? auditReason}) Future<void>
Deletes the message.
inherited
deleteAllReactions() Future<void>
Deletes all reactions
inherited
deleteSelfReaction(IEmoji emoji) Future<void>
Deletes reaction of bot.
inherited
deleteUserReaction(IEmoji emoji, SnowflakeEntity entity) Future<void>
Deletes reaction of given user.
inherited
dispose() Future<void>
Perform cleanup
inherited
edit(MessageBuilder 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 message's channel
inherited
suppressEmbeds() Future<Message>
Suppresses embeds in message. Can be executed in other users messages.
inherited
toBuilder() MessageBuilder
Returns instance of Builder with current data
inherited
toString() String
A string representation of this object. [...]
inherited
unpinMessage() Future<void>
Unpins Message in message's channel
inherited

Operators

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