Adding code for CommandHandler checks

This commit is contained in:
Sean "Solao Bajiuik" Stoves 2020-06-03 16:36:52 -04:00
parent 9cceace905
commit d8209998bf

View File

@ -85,7 +85,8 @@ namespace ChaosBot.Discord.Services
return;
}
await context.Channel.SendMessageAsync($"Sorry, {context.User.Username}... something went wrong -> [{result}]!");
_logger.Warn($"{context.User.Username} attempted to access {command.Value.Name} and was denied -> [{result}]");
await context.Channel.SendMessageAsync($"Sorry, {context.User.Username}, that command won't work for you.!");
}
catch (Exception ex)
{