Class SlashCommandGroupAttribute
Makes a class or a method available as a sub command group.
Inherited Members
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Commands.Attributes
Assembly: Color-Chan.Discord.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class SlashCommandGroupAttribute : Attribute
Constructors
| Improve this Doc View SourceSlashCommandGroupAttribute(String, String, Boolean)
Initializes a new instance of SlashCommandGroupAttribute.
Declaration
public SlashCommandGroupAttribute(string name, string description, bool defaultPermission = true)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the command group. |
String | description | The description of what the command group does. |
Boolean | defaultPermission | Whether the command is enabled by default when the app is added to a guild. Default: true. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when |
ArgumentNullException | Thrown when |
Properties
| Improve this Doc View SourceDefaultPermission
Whether the command is enabled by default when the app is added to a guild.
Declaration
public bool DefaultPermission { get; }
Property Value
Type | Description |
---|---|
Boolean |
Description
The description of what the command group is.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
Name
The name of the command group.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |