IMessage class Null safety

Implemented types

Constructors

IMessage()

Properties

applicationId Snowflake?
If the message is a response to an Interaction, this is the id of the interaction's application
read-only
attachments List<IAttachment>
The attachments in the message.
read-only
author IMessageAuthor
The message's author.
read-only
channel → CacheableTextChannel<ITextChannel>
Channel in which message was sent
read-only
client INyxx
Reference to bot instance
read-only
components List<List<IMessageComponent>>
List of components attached to message.
read-only
content String
The message's content.
read-only
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
crossPostReference IMessageReference?
Reference to original message if this message cross posts other message
read-only
editedTimestamp DateTime?
The timestamp of when the message was last edited, null if not edited.
read-only
embeds List<Embed>
A collection of the embeds in the message.
read-only
flags MessageFlags?
Extra features of the message
read-only
guild Cacheable<Snowflake, IGuild>?
The message's guild.
read-only
hashCode int
The hash code for this object.
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
isByWebhook bool
True if message is sent by a webhook
read-only
isCrossPosting bool
True if this message is cross posts other message
read-only
member IMember?
Member data of message author
read-only
mentionEveryone bool
Whether or @everyone was mentioned in the message.
read-only
mentions List<Cacheable<Snowflake, IUser>>
The mentions in the message.
read-only
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
read-only
partialStickers Iterable<IPartialSticker>
The stickers sent with the message
read-only
pinned bool
Whether or not the message is pinned.
read-only
reactions List<IReaction>
List of message reactions
read-only
referencedMessage IReferencedMessage?
Message reply
read-only
roleMentions List<Cacheable<Snowflake, IRole>>
Role mentions in this message
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamps Iterable<IMessageTimestamp>
Inline timestamps of current message
read-only
tts bool
Whether or not the message was sent with TTS enabled.
read-only
type MessageType
Type of message
read-only
url String
Returns clickable url to this message.
read-only

Methods

createAndGetThread(ThreadBuilder builder) Future<IThreadChannel>
Creates a thread in a message
createReaction(IEmoji emoji) Future<void>
Add reaction to message.
createThread(ThreadBuilder builder) Future<IThreadPreviewChannel>
Creates a thread based on this message, that only retrieves a ThreadPreviewChannel
crossPost() Future<void>
Cross post a Message into all guilds what follow the news channel indicated. This endpoint requires the "DISCOVERY" feature to be present for the guild.
delete({String? auditReason}) Future<void>
Deletes the message.
deleteAllReactions() Future<void>
Deletes all reactions
deleteReactions(IEmoji emoji) Future<void>
Deletes reactions to this message with a given emoji
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
inherited
edit(MessageBuilder builder) Future<IMessage>
Edits the message.
fetchReactionUsers(IEmoji emoji) Stream<IUser>
Fetches the users that reacted to this message with a given emoji.
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<IMessage>
Suppresses embeds in message. Can be executed in other users messages.
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

Operators

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