Class EnabledInDmAttribute
Sets the IsEnabledInDm property of an application command or module.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class EnabledInDmAttribute : Attribute
Constructors
| Improve this Doc View SourceEnabledInDmAttribute(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 SourceIsEnabled
Gets whether or not this command can be used in DMs.
Declaration
public bool IsEnabled { get; }
Property Value
Type | Description |
---|---|
Boolean |