Class SlashCommandErrorEventArgs
Represents arguments for a SlashCommandErrored event
Inheritance
System.Object
System.EventArgs
SlashCommandErrorEventArgs
Namespace: DisCatSharp.ApplicationCommands.EventArgs
Assembly: DisCatSharp.ApplicationCommands.dll
Syntax
public class SlashCommandErrorEventArgs : DiscordEventArgs
Constructors
| Improve this Doc View SourceSlashCommandErrorEventArgs(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 SourceContext
The context of the command.
Declaration
public InteractionContext Context { get; }
Property Value
Type | Description |
---|---|
InteractionContext |
Exception
The exception thrown.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |