Message constructor

Message({
  1. required String id,
  2. required String channelId,
  3. String? guildId,
  4. required User author,
  5. Member? member,
  6. required String content,
  7. required String timestamp,
  8. String? editedTimestamp,
  9. required bool tts,
  10. required bool mentionEveryone,
  11. required List<User> mentions,
  12. required List<Role> mentionRoles,
  13. List<ChannelMention>? mentionChannels,
  14. required List<Attachment> attachments,
  15. required List<Embed> embeds,
  16. List<Reaction>? reactions,
  17. String? nonce,
  18. required bool pinned,
  19. String? webhookId,
  20. required int type,
  21. MessageActivity? activity,
  22. MessageApplication? application,
  23. MessageReference? messageReference,
  24. int? flags,
  25. List<Sticker>? stickers,
  26. Message? referencedMessage,
  27. 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,
});