Constructor ContextMenuAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
ContextMenuAttribute(DiscordApplicationCommandType, string, bool, bool)
Marks this method as a context menu.
public ContextMenuAttribute(DiscordApplicationCommandType type, string name, bool defaultPermission = true, bool nsfw = false)
Parameters
type
DiscordApplicationCommandTypeThe type of the context menu.
name
stringThe name of the context menu.
defaultPermission
boolSets whether the command should be enabled by default.
nsfw
boolSets whether the command is age restricted.