Example #1
0
 /// <inheritdoc />
 public override Task <PreconditionResult> CheckRequirementsAsync(IInteractionContext context, ICommandInfo command, IServiceProvider services)
 {
     if (context.Channel is ITextChannel text && text.IsNsfw)
     {
         return(Task.FromResult(PreconditionResult.FromSuccess()));
     }