mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2025-10-27 08:50:04 +00:00
Don't allow muting the bot
This commit is contained in:
@@ -224,6 +224,10 @@ namespace DeukBot4.MessageHandlers.CommandHandler
|
||||
|
||||
private async Task<string> SilenceUser(IGuildUser user, TimeSpan span)
|
||||
{
|
||||
if (user.Id == Program.BotId)
|
||||
{
|
||||
return "Stop trying to mute me.";
|
||||
}
|
||||
var silencedRoleId = ServerSettingHandler.GetSettings(user.GuildId).MutedRoleId;
|
||||
if (silencedRoleId == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user