Search Results for

    Show / Hide Table of Contents

    Class SocketSlashCommand

    Represents a Websocket-based slash command received over the gateway.

    Inheritance
    Object
    SocketEntity<UInt64>
    SocketInteraction
    SocketCommandBase
    SocketSlashCommand
    Implements
    IEntity<UInt64>
    ISlashCommandInteraction
    IApplicationCommandInteraction
    IDiscordInteraction
    ISnowflakeEntity
    IEntity<UInt64>
    Inherited Members
    SocketCommandBase.CommandName
    SocketCommandBase.CommandId
    SocketCommandBase.HasResponded
    SocketCommandBase.RespondAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketCommandBase.RespondWithModalAsync(Modal, RequestOptions)
    SocketCommandBase.RespondWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketCommandBase.FollowupAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketCommandBase.FollowupWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketCommandBase.DeferAsync(Boolean, RequestOptions)
    SocketInteraction.Channel
    SocketInteraction.ChannelId
    SocketInteraction.User
    SocketInteraction.Type
    SocketInteraction.Token
    SocketInteraction.UserLocale
    SocketInteraction.GuildLocale
    SocketInteraction.Version
    SocketInteraction.CreatedAt
    SocketInteraction.IsValidToken
    SocketInteraction.IsDMInteraction
    SocketInteraction.RespondWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketInteraction.RespondWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketInteraction.RespondWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketInteraction.FollowupWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketInteraction.FollowupWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketInteraction.FollowupWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
    SocketInteraction.GetOriginalResponseAsync(RequestOptions)
    SocketInteraction.ModifyOriginalResponseAsync(Action<MessageProperties>, RequestOptions)
    SocketInteraction.DeleteOriginalResponseAsync(RequestOptions)
    SocketInteraction.GetChannelAsync(RequestOptions)
    SocketInteraction.IDiscordInteraction.User
    SocketEntity<UInt64>.Id
    Namespace: Discord.WebSocket
    Assembly: Discord.Net.WebSocket.dll
    Syntax
    public class SocketSlashCommand : SocketCommandBase, IEntity<ulong>, ISlashCommandInteraction, IApplicationCommandInteraction, IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>

    Properties

    | Improve this Doc View Source

    Data

    Gets the data associated with this interaction.

    Declaration
    public SocketSlashCommandData Data { get; }
    Property Value
    Type Description
    SocketSlashCommandData

    Explicit Interface Implementations

    | Improve this Doc View Source

    IApplicationCommandInteraction.Data

    Gets the data of the application command interaction

    Declaration
    IApplicationCommandInteractionData IApplicationCommandInteraction.Data { get; }
    Returns
    Type Description
    IApplicationCommandInteractionData
    | Improve this Doc View Source

    IDiscordInteraction.Data

    Gets the data sent within this interaction.

    Declaration
    IDiscordInteractionData IDiscordInteraction.Data { get; }
    Returns
    Type Description
    IDiscordInteractionData
    | Improve this Doc View Source

    ISlashCommandInteraction.Data

    Gets the data associated with this interaction.

    Declaration
    IApplicationCommandInteractionData ISlashCommandInteraction.Data { get; }
    Returns
    Type Description
    IApplicationCommandInteractionData

    Implements

    IEntity<TId>
    ISlashCommandInteraction
    IApplicationCommandInteraction
    IDiscordInteraction
    ISnowflakeEntity
    IEntity<TId>

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.6.0