Class TextChannelOnlyAttribute
Assembly: Revolt.Net.Commands.dll​
View Source​
Declaration
public class TextChannelOnlyAttribute : PreconditionAttribute
Methods​
CheckPermissionsAsync(ICommandContext, CommandInfo, IServiceProvider)​
View Source​
Declaration
public override Task<PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider services)
Returns​
Task<Revolt.Commands.Results.PreconditionResult>
Parameters​
| Type | Name |
|---|---|
| Revolt.Commands.ICommandContext | context |
| Revolt.Commands.Info.CommandInfo | command |
IServiceProvider | services |