DmMessage class

Constructors

DmMessage(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, User author)
DmMessage.from({required DmChannel 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 User
getter/setter pair
channel DmChannel
Get channel of this T
no setterinherited
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
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

delete({String? reason}) Future<void>
Delete this
edit({String? content, List<EmbedBuilder>? embeds, ComponentBuilder? components, List<AttachmentBuilder>? attachments, bool? tts}) Future<DmMessage?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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