GuildMessage class

Message that is sent in guild channel

Inheritance

Properties

applicationId Snowflake?
If the message is a response to an Interaction, this is the id of the interaction's application
latefinalinherited
attachments List<Attachment>
The attachments in the message.
latefinalinherited
author IMessageAuthor
The message's author. Can be instance of User or Webhook
latefinaloverride-getter
channel CacheableTextChannel<TextChannel>
Channel in which message was sent
latefinalinherited
client INyxx
Reference to bot instance
finalinherited
components List<List<IMessageComponent>>
List of components attached to message.
latefinalinherited
content String
The message's content.
getter/setter pairinherited
createdAt DateTime
Gets creation timestamp included in Snowflake
no setterinherited
crossPostReference MessageReference?
Reference to original message if this message cross posts other message
latefinal
editedTimestamp DateTime?
The timestamp of when the message was last edited, null if not edited.
latefinalinherited
embeds List<Embed>
A collection of the embeds in the message.
getter/setter pairinherited
flags MessageFlags?
Extra features of the message
latefinalinherited
guild Cacheable<Snowflake, Guild>
The message's guild.
latefinal
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
ID of entity as Snowflake
finalinherited
isByWebhook bool
True if message is sent by a webhook
no setter
isCrossPosting bool
True if this message is cross posts other message
no setter
member Member
Member data of message author
latefinal
mentionEveryone bool
Whether or @everyone was mentioned in the message.
latefinalinherited
mentions List<Cacheable<Snowflake, User>>
The mentions in the message.
getter/setter pairinherited
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
latefinalinherited
partialStickers Iterable<PartialSticker>
The stickers sent with the message
latefinalinherited
pinned bool
Whether or not the message is pinned.
latefinalinherited
reactions List<Reaction>
List of message reactions
latefinalinherited
referencedMessage ReferencedMessage?
Message reply
latefinalinherited
roleMentions List<Cacheable<Snowflake, Role>>
Role mentions in this message
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamps Iterable<MessageTimeStamp>
Inline timestamps of current message
no setterinherited
tts bool
Whether or not the message was sent with TTS enabled.
latefinalinherited
type MessageType
Type of message
latefinalinherited
url String
Returns clickable url to this message.
no setteroverride

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
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.
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 nonexistent 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