Search Results for

    Show / Hide Table of Contents

    Class SlashCommandErrorEventArgs

    Represents arguments for a SlashCommandErrored event

    Inheritance
    System.Object
    System.EventArgs
    AsyncEventArgs
    DiscordEventArgs
    SlashCommandErrorEventArgs
    Inherited Members
    DiscordEventArgs.ServiceProvider
    AsyncEventArgs.Handled
    Namespace: DisCatSharp.ApplicationCommands.EventArgs
    Assembly: DisCatSharp.ApplicationCommands.dll
    Syntax
    public class SlashCommandErrorEventArgs : DiscordEventArgs

    Constructors

    | Improve this Doc View Source

    SlashCommandErrorEventArgs(IServiceProvider)

    Initializes a new instance of the SlashCommandErrorEventArgs class.

    Declaration
    public SlashCommandErrorEventArgs(IServiceProvider provider)
    Parameters
    Type Name Description
    System.IServiceProvider provider

    The provider.

    Properties

    | Improve this Doc View Source

    Context

    The context of the command.

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

    Exception

    The exception thrown.

    Declaration
    public Exception Exception { get; }
    Property Value
    Type Description
    System.Exception

    Extension Methods

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