Class MessageCommandAttribute
Create a Message Context Command.
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class MessageCommandAttribute : ContextCommandAttribute
Remarks
GroupAttributes won't add prefixes to this command.
Constructors
| Improve this Doc View SourceMessageCommandAttribute(String)
Register a method as a Message Context Command.
Declaration
public MessageCommandAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the context command. |