Search Results for

    Show / Hide Table of Contents

    Class DiscordInteractionData

    An interaction is the base "thing" that is sent when a user invokes a command, and is the same for Slash Commands and other future interaction types (such as Message Components). Represents a discord Interaction Structure API model. Docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure

    Inheritance
    Object
    DiscordInteractionData
    Implements
    IEquatable<DiscordInteractionData>
    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.Interaction
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordInteractionData : IEquatable<DiscordInteractionData>

    Properties

    | Improve this Doc View Source

    ApplicationId

    Id of the application this interaction is for.

    Declaration
    [JsonPropertyName("application_id")]
    public ulong ApplicationId { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    ChannelId

    The channel it was sent from.

    Declaration
    [JsonPropertyName("channel_id")]
    public ulong? ChannelId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Data

    The command data payload.

    Declaration
    [JsonPropertyName("data")]
    public DiscordInteractionRequestData Data { get; set; }
    Property Value
    Type Description
    DiscordInteractionRequestData
    Remarks

    This is always present on application command interaction types. It is optional for future-proofing against new interaction types.

    | Improve this Doc View Source

    Entitlements

    The entitlements attached to the interaction.

    Declaration
    [JsonPropertyName("entitlements")]
    public IEnumerable<DiscordEntitlementData> Entitlements { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordEntitlementData>
    | Improve this Doc View Source

    EntitlementSkuIds

    The ids of the entitlements SKUs attached to the interaction.

    Declaration
    [JsonPropertyName("entitlement_sku_ids")]
    public IEnumerable<ulong> EntitlementSkuIds { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.UInt64>
    | Improve this Doc View Source

    GuildId

    The guild it was sent from.

    Declaration
    [JsonPropertyName("guild_id")]
    public ulong? GuildId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    GuildMember

    Guild member data for the invoking user, including permissions.

    Declaration
    [JsonPropertyName("member")]
    public DiscordGuildMemberData GuildMember { get; set; }
    Property Value
    Type Description
    DiscordGuildMemberData
    | Improve this Doc View Source

    Id

    The Discord provided snowflake id.

    Declaration
    [JsonPropertyName("id")]
    public ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Message

    For components, the message they were attached to.

    Declaration
    [JsonPropertyName("message")]
    public DiscordMessageData Message { get; set; }
    Property Value
    Type Description
    DiscordMessageData
    | Improve this Doc View Source

    Permissions

    Permissions the app or bot has within the channel the interaction was sent from.

    Declaration
    [JsonPropertyName("app_permissions")]
    public DiscordPermission? Permissions { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordPermission>
    | Improve this Doc View Source

    RequestType

    The type of interaction.

    Declaration
    [JsonPropertyName("type")]
    public DiscordInteractionRequestType RequestType { get; set; }
    Property Value
    Type Description
    DiscordInteractionRequestType
    | Improve this Doc View Source

    Token

    A continuation token for responding to the interaction.

    Declaration
    [JsonPropertyName("token")]
    public string Token { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    User

    User object for the invoking user, if invoked in a DM.

    Declaration
    [JsonPropertyName("user")]
    public DiscordUserData User { get; set; }
    Property Value
    Type Description
    DiscordUserData
    | Improve this Doc View Source

    Versions

    Read-only property, always 1

    Declaration
    [JsonPropertyName("version")]
    public int Versions { get; set; }
    Property Value
    Type Description
    Int32

    Implements

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