Search Results for

    Show / Hide Table of Contents

    Class EnabledInDmAttribute

    Sets the IsEnabledInDm property of an application command or module.

    Inheritance
    Object
    EnabledInDmAttribute
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public class EnabledInDmAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    EnabledInDmAttribute(Boolean)

    Sets the IsEnabledInDm property of an application command or module.

    Declaration
    public EnabledInDmAttribute(bool isEnabled)
    Parameters
    Type Name Description
    Boolean isEnabled

    Whether or not this command can be used in DMs.

    Properties

    | Improve this Doc View Source

    IsEnabled

    Gets whether or not this command can be used in DMs.

    Declaration
    public bool IsEnabled { get; }
    Property Value
    Type Description
    Boolean

    Theme

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