Class DiscordMessageReferenceData
Represents a discord Message Reference Structure API model. Docs: https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Message
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordMessageReferenceData : IEquatable<DiscordMessageReferenceData>
Properties
| Improve this Doc View SourceChannelId
Id of the originating message's channel.
Declaration
[JsonPropertyName("channel_id")]
public ulong? ChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Remarks
channel_id is optional when creating a reply, but will always be present when receiving an event/response that includes this data model.
FailIfNotExists
When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true.
Declaration
[JsonPropertyName("fail_if_not_exists")]
public ulong? FailIfNotExists { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
GuildId
Id of the originating message's guild.
Declaration
[JsonPropertyName("guild_id")]
public ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
MessageId
Id of the originating message.
Declaration
[JsonPropertyName("message_id")]
public ulong? MessageId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |