Message class

Constructors

Message(Snowflake _id, String _content, bool _tts, List<EmbedBuilder> _embeds, bool _allowMentions, PartialMessage<PartialChannel>? _reference, ComponentBuilder _components, List<MessageStickerItem> _stickers, dynamic _payload, List<MessageAttachment> _attachments, int? _flags, bool _pinned, Snowflake? _guildId, Snowflake _channelId, MessageReactionManager<PartialChannel, PartialMessage<PartialChannel>> _reactions, String timestamp, String? editedTimestamp, MessageMention _mentions, MessageAuthor _author)
Message.from({required GuildChannel channel, required dynamic payload})
factory

Properties

allowMentions bool
Get allow mentions bool of this
no setterinherited
attachments List<MessageAttachment>
Get attachments MessageAttachment of this
no setterinherited
author → MessageAuthor
Get author of this
no setter
channel TextBasedChannel
Get channel of this
no setter
components ComponentBuilder
Get components ComponentBuilder of this
no setterinherited
content String
Get content String of this
no setterinherited
createdAt DateTime
Get created at DateTime of this
no setterinherited
embeds List<EmbedBuilder>
Get embeds EmbedBuilder of this
no setterinherited
flags int?
Get flags int of this
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
Get id Snowflake of this
no setterinherited
isPinned bool
Get if this is pinned bool
no setterinherited
mentions → MessageMention
Get all mentions of this
no setter
payload → dynamic
no setterinherited
reactions → MessageReactionManager<PartialChannel, PartialMessage<PartialChannel>>
Get reactions MessageReactionManager of this
no setterinherited
reference → PartialMessage<PartialChannel>?
Get reference PartialMessage of this
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickers List<MessageStickerItem>
Get stickers MessageStickerItem of this
no setterinherited
tts bool
Get if this is tts bool
no setterinherited
updatedAt DateTime?
Get edited at DateTime of this
no setterinherited

Methods

createThread({required String label, int archiveDuration = 60}) Future<ThreadChannel?>
Create a thread from this message
crossPost() Future<void>
delete({String? reason}) Future<void>
Delete this
inherited
edit({String? content, List<EmbedBuilder>? embeds, ComponentBuilder? components, List<AttachmentBuilder>? attachments, bool? tts}) Future<Message?>
Edit this message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pin() Future<void>
Pin this message
reply({String? content, List<EmbedBuilder>? embeds, ComponentBuilder? components, List<AttachmentBuilder>? attachments, bool? tts}) Future<PartialMessage<PartialChannel>?>
Reply to this message
toString() String
A string representation of this object.
inherited
unpin() Future<void>
Unpin this message

Operators

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