Message constructor

Message({
  1. required String id,
  2. required String channelId,
  3. String? guildId,
  4. required User author,
  5. GuildMember? member,
  6. required String content,
  7. required DateTime timestamp,
  8. DateTime? editedTimestamp,
  9. required bool tts,
  10. required bool mentionEveryone,
  11. required List<User> mentions,
  12. required List<String> mentionRoles,
  13. List<ChannelMention>? mentionChannels,
  14. required List<Attachment> attachments,
  15. required List<Embed> embeds,
  16. List<Reaction>? reactions,
  17. dynamic nonce,
  18. required bool pinned,
  19. String? webhookId,
  20. required MessageType type,
  21. MessageActivity? activity,
  22. Application? application,
  23. String? applicationId,
  24. MessageReference? messageReference,
  25. List<MessageFlag>? flags,
  26. Message? referencedMessage,
  27. MessageInteraction? interaction,
  28. Channel? thread,
  29. List<Component>? components,
  30. List<Sticker>? stickerItems,
})

array of sticker objects Constructor

Implementation

// @Deprecated('Use stickerItems instead')
// final List<Sticker>? stickers;

/// Constructor
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.applicationId,
  this.messageReference,
  this.flags,
  this.referencedMessage,
  this.interaction,
  this.thread,
  this.components,
  this.stickerItems,
});