namespace VpSharp.Commands.Attributes.ExecutionChecks;
///
/// Specifies that this command cannot be run by bots.
///
public sealed class RequireHumanAttribute : PreExecutionCheckAttribute
{
///
protected internal override Task PerformAsync(CommandContext context)
{
if (context is null)
{
throw new ArgumentNullException(nameof(context));
}
return Task.FromResult(!context.Avatar.IsBot);
}
}