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