mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2025-10-27 17:00:05 +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)
|
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;
|
var silencedRoleId = ServerSettingHandler.GetSettings(user.GuildId).MutedRoleId;
|
||||||
if (silencedRoleId == 0)
|
if (silencedRoleId == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user