Class NsfwCommandAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Sets the IsNsfw property of an application command or module.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class NsfwCommandAttribute : Attribute
- Inheritance
-
NsfwCommandAttribute
- Inherited Members
Constructors
NsfwCommandAttribute(bool)
Sets the IsNsfw property of an application command or module.
public NsfwCommandAttribute(bool isNsfw)
Parameters
isNsfw
boolWhether or not this command is age restricted.
Properties
IsNsfw
Gets whether or not this command is age restricted.
public bool IsNsfw { get; }