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