Class ContextMenuAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
Marks this method as a context menu.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class ContextMenuAttribute : Attribute- Inheritance
- 
      
      
      ContextMenuAttribute
Constructors
- ContextMenuAttribute(DiscordApplicationCommandType, string, bool, bool)
- Marks this method as a context menu. 
Properties
- DefaultPermission
- Gets whether this command is enabled by default. 
- NSFW
- Gets whether this command is age restricted. 
- Name
- Gets the name of this context menu. 
- Type
- Gets the type of this context menu.