Class MessageCommandAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Create a Message Context Command.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class MessageCommandAttribute : ContextCommandAttribute
- Inheritance
-
MessageCommandAttribute
- Inherited Members
Remarks
GroupAttributes won't add prefixes to this command.
Constructors
MessageCommandAttribute(string)
Register a method as a Message Context Command.
public MessageCommandAttribute(string name)
Parameters
name
stringName of the context command.