Search Results for

    Show / Hide Table of Contents

    Class DiscordInteractionData

    Represents the inner data payload of a DiscordInteraction.

    Inheritance
    System.Object
    SnowflakeObject
    DiscordInteractionData
    Inherited Members
    SnowflakeObject.Id
    SnowflakeObject.CreationTimestamp
    Namespace: DisCatSharp.Entities
    Assembly: DisCatSharp.dll
    Syntax
    public sealed class DiscordInteractionData : SnowflakeObject

    Properties

    | Improve this Doc View Source

    Components

    Gets the components (Applicable to modal submits).

    Declaration
    public IEnumerable<DiscordActionRowComponentResult> Components { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordActionRowComponentResult>
    | Improve this Doc View Source

    ComponentType

    The type of component that invoked this interaction, if applicable.

    Declaration
    public ComponentType ComponentType { get; }
    Property Value
    Type Description
    ComponentType
    | Improve this Doc View Source

    CustomId

    The Id of the component that invoked this interaction, if applicable.

    Declaration
    public string CustomId { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Name

    Gets the name of the invoked interaction.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Options

    Gets the parameters and values of the invoked interaction.

    Declaration
    public IEnumerable<DiscordInteractionDataOption> Options { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordInteractionDataOption>
    | Improve this Doc View Source

    Resolved

    Gets the Discord snowflake objects resolved from this interaction's arguments.

    Declaration
    public DiscordInteractionResolvedCollection Resolved { get; }
    Property Value
    Type Description
    DiscordInteractionResolvedCollection
    | Improve this Doc View Source

    Type

    Gets the type of the interaction.

    Declaration
    public ApplicationCommandType Type { get; }
    Property Value
    Type Description
    ApplicationCommandType
    | Improve this Doc View Source

    Values

    Gets the values of the interaction.

    Declaration
    public string[] Values { get; }
    Property Value
    Type Description
    System.String[]

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems