#pragma warning disable CS1591 using Newtonsoft.Json; using System; namespace Discord.API { internal class Message { [JsonProperty("id")] public ulong Id { get; set; } [JsonProperty("type")] public MessageType Type { get; set; } [JsonProperty("channel_id")] public ulong ChannelId { get; set; } // ALWAYS sent on WebSocket messages [JsonProperty("guild_id")] public Optional GuildId { get; set; } [JsonProperty("webhook_id")] public Optional WebhookId { get; set; } [JsonProperty("author")] public Optional Author { get; set; } // ALWAYS sent on WebSocket messages [JsonProperty("member")] public Optional Member { get; set; } [JsonProperty("content")] public Optional Content { get; set; } [JsonProperty("timestamp")] public Optional Timestamp { get; set; } [JsonProperty("edited_timestamp")] public Optional EditedTimestamp { get; set; } [JsonProperty("tts")] public Optional IsTextToSpeech { get; set; } [JsonProperty("mention_everyone")] public Optional MentionEveryone { get; set; } [JsonProperty("mentions")] public Optional[]> UserMentions { get; set; } [JsonProperty("mention_roles")] public Optional RoleMentions { get; set; } [JsonProperty("attachments")] public Optional Attachments { get; set; } [JsonProperty("embeds")] public Optional Embeds { get; set; } [JsonProperty("pinned")] public Optional Pinned { get; set; } [JsonProperty("reactions")] public Optional Reactions { get; set; } // sent with Rich Presence-related chat embeds [JsonProperty("activity")] public Optional Activity { get; set; } // sent with Rich Presence-related chat embeds [JsonProperty("application")] public Optional Application { get; set; } [JsonProperty("message_reference")] public Optional Reference { get; set; } [JsonProperty("flags")] public Optional Flags { get; set; } } }