Table of Contents

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
RequireNsfwAttribute

Methods

ExecuteCheckAsync(CommandContext, bool)

Asynchronously checks whether this command can be executed within given context.