Table of Contents

Constructor SlashCommandAttribute

Namespace
Pillars.Chat.Attributes
Assembly
Pillars.dll

SlashCommandAttribute(string)

Marks a method as a slash command, associating it with a unique identifier.

public SlashCommandAttribute(string identifier)

Parameters

identifier string

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.