Class SlashCommandModule
The base that should be used for all slash command modules.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Commands.Modules
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public class SlashCommandModule : InteractionModuleBase, ISlashCommandModule
Properties
| Improve this Doc View SourceContext
The current context the slash command.
Declaration
protected ISlashCommandContext Context { get; set; }
Property Value
Type | Description |
---|---|
ISlashCommandContext |
Methods
| Improve this Doc View SourceSetContext(ISlashCommandContext)
Set the current ISlashCommandContext for a command.
Declaration
public void SetContext(ISlashCommandContext context)
Parameters
Type | Name | Description |
---|---|---|
ISlashCommandContext | context | The new ISlashCommandContext. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | When the given context was null. |