Class NsfwCommandAttribute
Sets the IsNsfw property of an application command or module.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class NsfwCommandAttribute : Attribute
Constructors
| Improve this Doc View SourceNsfwCommandAttribute(Boolean)
Sets the IsNsfw property of an application command or module.
Declaration
public NsfwCommandAttribute(bool isNsfw)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isNsfw | Whether or not this command is age restricted. |
Properties
| Improve this Doc View SourceIsNsfw
Gets whether or not this command is age restricted.
Declaration
public bool IsNsfw { get; }
Property Value
Type | Description |
---|---|
Boolean |