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