From 9562f9d5280a0a59c15d681d372d10a4f4c89c17 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 17 Oct 2021 11:31:57 +0300 Subject: [PATCH] debug(mutes): add guild id to recoverable plugin error 'mute role is above the bot' --- backend/src/plugins/Mutes/functions/muteUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Mutes/functions/muteUser.ts b/backend/src/plugins/Mutes/functions/muteUser.ts index bf60002e..9dc54c4a 100644 --- a/backend/src/plugins/Mutes/functions/muteUser.ts +++ b/backend/src/plugins/Mutes/functions/muteUser.ts @@ -118,7 +118,7 @@ export async function muteUser( logs.logBotAlert({ body: `Cannot mute users, specified mute role is above Zeppelin in the role hierarchy`, }); - throw new RecoverablePluginError(ERRORS.MUTE_ROLE_ABOVE_ZEP); + throw new RecoverablePluginError(ERRORS.MUTE_ROLE_ABOVE_ZEP, pluginData.guild.id); } } }