Constructor SlashCommandGroupAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
SlashCommandGroupAttribute(string, string, bool, bool)
Marks this class as a slash command group.
public SlashCommandGroupAttribute(string name, string description, bool defaultPermission = true, bool nsfw = false)
Parameters
name
stringSets the name of this command group.
description
stringSets the description of this command group.
defaultPermission
boolSets whether this command group is enabled on default.
nsfw
boolSets whether the command group is age restricted.