Table of Contents

Class RequireNsfwAttribute<TContext>

Namespace
NetCord.Services
Assembly
NetCord.Services.dll
public class RequireNsfwAttribute<TContext> : PreconditionAttribute<TContext> where TContext : IChannelContext

Type Parameters

TContext
Inheritance
RequireNsfwAttribute<TContext>
Inherited Members

Constructors

RequireNsfwAttribute(string)

public RequireNsfwAttribute(string message = "Required nsfw channel.")

Parameters

message string

Methods

EnsureCanExecuteAsync(TContext, IServiceProvider?)

public override ValueTask<PreconditionResult> EnsureCanExecuteAsync(TContext context, IServiceProvider? serviceProvider)

Parameters

context TContext
serviceProvider IServiceProvider

Returns

ValueTask<PreconditionResult>