MessageResponseSchema constructor

const MessageResponseSchema({
  1. required String id,
  2. required String channelId,
  3. required UserPartialResponse author,
  4. required MessageResponseSchemaTypeType type,
  5. required MessageFlags flags,
  6. required String content,
  7. required DateTime timestamp,
  8. required bool pinned,
  9. required bool mentionEveryone,
  10. required bool tts,
  11. required List<UserPartialResponse> mentions,
  12. required List<String> mentionRoles,
  13. SnowflakeType? webhookId,
  14. DateTime? editedTimestamp,
  15. List<MessageChannelMentionResponse>? mentionChannels,
  16. List<UserPartialResponse>? users,
  17. List<MessageEmbedResponse>? embeds,
  18. List<MessageAttachmentResponse>? attachments,
  19. List<MessageStickerResponse>? stickers,
  20. List<SnowflakeType>? nsfwEmojis,
  21. List<MessageReactionResponse>? reactions,
  22. MessageReferenceResponse? messageReference,
  23. List<MessageSnapshotResponse>? messageSnapshots,
  24. String? nonce,
  25. MessageCallResponse? call,
  26. MessageBaseResponseSchema? referencedMessage,
})

Implementation

const MessageResponseSchema({
  required this.id,
  required this.channelId,
  required this.author,
  required this.type,
  required this.flags,
  required this.content,
  required this.timestamp,
  required this.pinned,
  required this.mentionEveryone,
  required this.tts,
  required this.mentions,
  required this.mentionRoles,
  this.webhookId,
  this.editedTimestamp,
  this.mentionChannels,
  this.users,
  this.embeds,
  this.attachments,
  this.stickers,
  this.nsfwEmojis,
  this.reactions,
  this.messageReference,
  this.messageSnapshots,
  this.nonce,
  this.call,
  this.referencedMessage,
});