Message constructor
Message({
- required String id,
- required String channelId,
- String? guildId,
- required User author,
- Member? member,
- required String content,
- required String timestamp,
- String? editedTimestamp,
- required bool tts,
- required bool mentionEveryone,
- required List<
User> mentions, - required List<
Role> mentionRoles, - List<
ChannelMention> ? mentionChannels, - required List<
Attachment> attachments, - required List<
Embed> embeds, - List<
Reaction> ? reactions, - String? nonce,
- required bool pinned,
- String? webhookId,
- required int type,
- MessageActivity? activity,
- MessageApplication? application,
- MessageReference? messageReference,
- int? flags,
- List<
Sticker> ? stickers, - Message? referencedMessage,
- MessageInteraction? interaction,
Implementation
Message({
required this.id,
required this.channelId,
this.guildId,
required this.author,
this.member,
required this.content,
required this.timestamp,
this.editedTimestamp,
required this.tts,
required this.mentionEveryone,
required this.mentions,
required this.mentionRoles,
this.mentionChannels,
required this.attachments,
required this.embeds,
this.reactions,
this.nonce,
required this.pinned,
this.webhookId,
required this.type,
this.activity,
this.application,
this.messageReference,
this.flags,
this.stickers,
this.referencedMessage,
this.interaction,
});