Search Results for

    Show / Hide Table of Contents

    Class DiscordMessageReferenceData

    Represents a discord Message Reference Structure API model. Docs: https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure

    Inheritance
    Object
    DiscordMessageReferenceData
    Implements
    IEquatable<DiscordMessageReferenceData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    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 Source

    ChannelId

    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.

    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    MessageId

    Id of the originating message.

    Declaration
    [JsonPropertyName("message_id")]
    public ulong? MessageId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX