Table of Contents

Class JsonMessage

Namespace
NetCord.JsonModels
Assembly
NetCord.dll
public class JsonMessage : JsonEntity
Inheritance
JsonMessage
Inherited Members

Constructors

JsonMessage()

public JsonMessage()

Properties

Activity

[JsonPropertyName("activity")]
public JsonMessageActivity? Activity { get; set; }

Property Value

JsonMessageActivity

Application

[JsonPropertyName("application")]
public JsonApplication? Application { get; set; }

Property Value

JsonApplication

ApplicationId

[JsonPropertyName("application_id")]
public ulong? ApplicationId { get; set; }

Property Value

ulong?

Attachments

[JsonPropertyName("attachments")]
public JsonAttachment[]? Attachments { get; set; }

Property Value

JsonAttachment[]

Author

[JsonPropertyName("author")]
public JsonUser? Author { get; set; }

Property Value

JsonUser

Call

[JsonPropertyName("call")]
public JsonMessageCall? Call { get; set; }

Property Value

JsonMessageCall

ChannelId

[JsonPropertyName("channel_id")]
public ulong ChannelId { get; set; }

Property Value

ulong

Components

[JsonPropertyName("components")]
public JsonComponent[]? Components { get; set; }

Property Value

JsonComponent[]

Content

[JsonPropertyName("content")]
public string? Content { get; set; }

Property Value

string

EditedAt

[JsonPropertyName("edited_timestamp")]
public DateTimeOffset? EditedAt { get; set; }

Property Value

DateTimeOffset?

Embeds

[JsonPropertyName("embeds")]
public JsonEmbed[]? Embeds { get; set; }

Property Value

JsonEmbed[]

Flags

[JsonPropertyName("flags")]
public MessageFlags? Flags { get; set; }

Property Value

MessageFlags?

GuildId

[JsonPropertyName("guild_id")]
public ulong? GuildId { get; set; }

Property Value

ulong?

GuildUser

[JsonPropertyName("member")]
public JsonGuildUser? GuildUser { get; set; }

Property Value

JsonGuildUser

Interaction

[Obsolete("Replaced by 'InteractionMetadata'")]
[JsonPropertyName("interaction")]
public JsonMessageInteraction? Interaction { get; set; }

Property Value

JsonMessageInteraction

InteractionMetadata

[JsonPropertyName("interaction_metadata")]
public JsonMessageInteractionMetadata? InteractionMetadata { get; set; }

Property Value

JsonMessageInteractionMetadata

IsPinned

[JsonPropertyName("pinned")]
public bool? IsPinned { get; set; }

Property Value

bool?

IsTts

[JsonPropertyName("tts")]
public bool? IsTts { get; set; }

Property Value

bool?

MentionEveryone

[JsonPropertyName("mention_everyone")]
public bool? MentionEveryone { get; set; }

Property Value

bool?

MentionedChannels

[JsonPropertyName("mention_channels")]
public JsonGuildChannelMention[]? MentionedChannels { get; set; }

Property Value

JsonGuildChannelMention[]

MentionedRoleIds

[JsonPropertyName("mention_roles")]
public ulong[]? MentionedRoleIds { get; set; }

Property Value

ulong[]

MentionedUsers

[JsonPropertyName("mentions")]
public JsonUser[]? MentionedUsers { get; set; }

Property Value

JsonUser[]

MessageReference

[JsonPropertyName("message_reference")]
public JsonMessageReference? MessageReference { get; set; }

Property Value

JsonMessageReference

MessageSnapshots

[JsonPropertyName("message_snapshots")]
public JsonMessageSnapshot[]? MessageSnapshots { get; set; }

Property Value

JsonMessageSnapshot[]

Nonce

[JsonConverter(typeof(AnyValueToStringConverter))]
[JsonPropertyName("nonce")]
public string? Nonce { get; set; }

Property Value

string

Poll

[JsonPropertyName("poll")]
public JsonMessagePoll? Poll { get; set; }

Property Value

JsonMessagePoll

Position

[JsonPropertyName("position")]
public int? Position { get; set; }

Property Value

int?

Reactions

[JsonPropertyName("reactions")]
public JsonMessageReaction[]? Reactions { get; set; }

Property Value

JsonMessageReaction[]

ReferencedMessage

[JsonPropertyName("referenced_message")]
public JsonMessage? ReferencedMessage { get; set; }

Property Value

JsonMessage

ResolvedData

[JsonPropertyName("resolved")]
public JsonInteractionResolvedData? ResolvedData { get; set; }

Property Value

JsonInteractionResolvedData

RoleSubscriptionData

[JsonPropertyName("role_subscription_data")]
public JsonRoleSubscriptionData? RoleSubscriptionData { get; set; }

Property Value

JsonRoleSubscriptionData

StartedThread

[JsonPropertyName("thread")]
public JsonChannel? StartedThread { get; set; }

Property Value

JsonChannel

Stickers

[JsonPropertyName("sticker_items")]
public JsonMessageSticker[]? Stickers { get; set; }

Property Value

JsonMessageSticker[]

Type

[JsonPropertyName("type")]
public MessageType? Type { get; set; }

Property Value

MessageType?

WebhookId

[JsonPropertyName("webhook_id")]
public ulong? WebhookId { get; set; }

Property Value

ulong?