Message class

Constructors

Message(Snowflake _id, String _content, bool _tts, List<EmbedBuilder> _embeds, bool _allowMentions, PartialMessage<PartialChannel>? _reference, List<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, Snowflake _authorId, MessageMention _mentions)
Message.from({required GuildChannel channel, required dynamic payload})
factory

Properties

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

Methods

crossPost() Future<void>
edit({String? content, List<EmbedBuilder>? embeds, List<RowBuilder>? components, bool? tts}) Future<Message?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pin(Snowflake webhookId) Future<void>
reply({String? content, List<EmbedBuilder>? embeds, List<RowBuilder>? components, bool? tts}) Future<PartialMessage<PartialChannel>?>
toString() String
A string representation of this object.
inherited
unpin() Future<void>

Operators

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