|
|
@@ -42,7 +42,7 @@ namespace Discord.Net.Models |
|
|
|
/// <param name="thread">The thread that was started from this message, includes thread member object.</param> |
|
|
|
/// <param name="components">Sent if the message contains components like buttons, action rows, or other interactive components.</param> |
|
|
|
[JsonConstructor] |
|
|
|
public Message(Snowflake id, Snowflake channelId, Optional<Snowflake> guildId, User author, Optional<GuildMember> member, string content, DateTimeOffset timestamp, DateTimeOffset? editedTimestamp, bool tts, bool mentionEveryone, UserMention[] mentions, Snowflake[] mentionRoles, Optional<ChannelMention[]> mentionChannels, Attachment[] attachments, Embed[] embeds, Optional<Reaction[]> reactions, Optional<string> nonce, bool pinned, Optional<Snowflake> webhookId, int type, Optional<MessageActivity> activity, Optional<Application> application, Optional<Snowflake> applicationId, Optional<MessageReference> messageReference, Optional<MessageFlags> flags, Optional<Sticker[]> stickers, Optional<Message?> referencedMessage, Optional<MessageInteraction> interaction, Optional<Channel> thread, Optional<Component> components) |
|
|
|
public Message(Snowflake id, Snowflake channelId, Optional<Snowflake> guildId, User author, Optional<GuildMember> member, string content, DateTimeOffset timestamp, DateTimeOffset? editedTimestamp, bool tts, bool mentionEveryone, UserMention[] mentions, Snowflake[] mentionRoles, Optional<ChannelMention[]> mentionChannels, Attachment[] attachments, Embed[] embeds, Optional<Reaction[]> reactions, Optional<string> nonce, bool pinned, Optional<Snowflake> webhookId, int type, Optional<MessageActivity> activity, Optional<Application> application, Optional<Snowflake> applicationId, Optional<MessageReference> messageReference, Optional<MessageFlags> flags, Optional<Sticker[]> stickers, Optional<Message?> referencedMessage, Optional<MessageInteraction> interaction, Optional<Channel> thread, Optional<ActionRowComponent[]> components) |
|
|
|
{ |
|
|
|
Id = id; |
|
|
|
ChannelId = channelId; |
|
|
@@ -254,6 +254,6 @@ namespace Discord.Net.Models |
|
|
|
/// Sent if the message contains components like buttons, action rows, or other interactive components. |
|
|
|
/// </summary> |
|
|
|
[JsonPropertyName("components")] |
|
|
|
public Optional<Component> Components { get; } |
|
|
|
public Optional<ActionRowComponent[]> Components { get; } |
|
|
|
} |
|
|
|
} |