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
typeDiscordApplicationCommandTypeThe type of the context menu.
namestringThe name of the context menu.
defaultPermissionboolSets whether the command should be enabled by default.
nsfwboolSets whether the command is age restricted.