Class RequireNsfwAttribute
- Namespace
- DSharpPlus.CommandsNext.Attributes
- Assembly
- DSharpPlus.CommandsNext.dll
Defines that usage of this command is restricted to NSFW channels.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class RequireNsfwAttribute : CheckBaseAttribute
- Inheritance
-
objectAttributeRequireNsfwAttribute
Methods
- ExecuteCheckAsync(CommandContext, bool)
Asynchronously checks whether this command can be executed within given context.