Class RequireGuildOwnerAttribute
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class RequireGuildOwnerAttribute : PreconditionAttribute
- Inheritance
-
objectAttributeRequireGuildOwnerAttribute
- Inherited Members
Methods
CheckPermissionsAsync(ICommandContext, CommandInfo, IServiceProvider)
Checks if the command has the sufficient permission to be executed.
public override Task<PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider services)
Parameters
contextICommandContextThe context of the command.
commandCommandInfoThe command being executed.
servicesIServiceProviderThe service collection used for dependency injection.