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< reactions, String timestamp, String? editedTimestamp, User author)PartialChannel> > - DmMessage.from({required DmChannel channel, required dynamic payload})
-
factory
Properties
- allowMentions → bool
-
no setterinherited
-
attachments
→ List<
MessageAttachment> -
no setterinherited
-
getter/setter pair
- channel → DmChannel
-
no setterinherited
- components → 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
- 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
-
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