Do not exit after user failure on command perm

This commit is contained in:
Daniel_I_Am 2020-09-04 21:55:21 +02:00
parent 2cbe6c0aa5
commit 71b05a2bbd
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -49,8 +49,7 @@ namespace ChaosBot.Discord.PreConditions
{
if(context.User.Id == perm.TargetId)
return Task.FromResult(PreconditionResult.FromSuccess());
return Task.FromResult(PreconditionResult.FromError($"You do not have access to this command."));
continue;
}
else
{