Adding code for CommandHandler checks
This commit is contained in:
parent
9cceace905
commit
d8209998bf
@ -85,7 +85,8 @@ namespace ChaosBot.Discord.Services
|
|||||||
return;
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user