Interface ISlashCommandInfo
Contains all the information about a slash command.
Namespace: Color_Chan.Discord.Commands.Models.Info
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface ISlashCommandInfo
Properties
| Improve this Doc View SourceAcknowledge
Whether or not the command should be automatically acknowledge to prevent the token from turning inactive after 3 seconds.
Declaration
bool Acknowledge { get; }
Property Value
Type | Description |
---|---|
Boolean |
CommandMethod
The System.Reflection.MethodInfo containing the method of the command.
Declaration
MethodInfo CommandMethod { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
Remarks
null when the command is a command group.
CommandName
The name of the command.
Declaration
string CommandName { get; set; }
Property Value
Type | Description |
---|---|
String |
CommandOptions
The options for the slash command.
Declaration
List<ISlashCommandOptionInfo> CommandOptions { get; set; }
Property Value
Type | Description |
---|---|
List<ISlashCommandOptionInfo> |
DefaultPermission
Whether the command is enabled by default when the app is added to a guild.
Declaration
bool DefaultPermission { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Description
The description of the command.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Guilds
A System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute containing the IDs of the guilds that will get access to this slash command.
Declaration
IEnumerable<SlashCommandGuildAttribute> Guilds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SlashCommandGuildAttribute> |
ParentModule
The command module containing the CommandMethod.
Declaration
TypeInfo ParentModule { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.TypeInfo |
Requirements
A System.Collections.Generic.IEnumerable<T> of InteractionRequirementAttributes containing all the requirements to execute the command.
Declaration
IEnumerable<InteractionRequirementAttribute> Requirements { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<InteractionRequirementAttribute> |