Class SlashCommandAttribute
- Namespace
- Pillars.Chat.Attributes
- Assembly
- Pillars.dll
Marks a method as a slash command, associating it with a unique identifier.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class SlashCommandAttribute : Attribute
- Inheritance
-
SlashCommandAttribute
- Inherited Members
Remarks
This attribute is used to define methods that handle slash commands in the application.
The Identifier property specifies the command's unique name, which is used to invoke the command.
The "/" prefix will be automatically added to the identifier.
The attribute can only be applied to methods and does not support multiple instances or inheritance.
Constructors
- SlashCommandAttribute(string)
Marks a method as a slash command, associating it with a unique identifier.