Search Results for

    Show / Hide Table of Contents

    Class UserCommandAttribute

    Create an User Context Command.

    Inheritance
    Object
    ContextCommandAttribute
    UserCommandAttribute
    Inherited Members
    ContextCommandAttribute.Name
    ContextCommandAttribute.CommandType
    ContextCommandAttribute.RunMode
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public class UserCommandAttribute : ContextCommandAttribute
    Remarks

    GroupAttributes won't add prefixes to this command.

    Constructors

    | Improve this Doc View Source

    UserCommandAttribute(String)

    Register a command as a User Context Command.

    Declaration
    public UserCommandAttribute(string name)
    Parameters
    Type Name Description
    String name

    Name of this User Context Command.

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2