Don't allow muting the bot
This commit is contained in:
parent
9a563ba0b6
commit
89dd74c711
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue