3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-24 01:55:03 +00:00

debug(mutes): add guild id to recoverable plugin error 'mute role is above the bot'

This commit is contained in:
Dragory 2021-10-17 11:31:57 +03:00
parent 35763edb7c
commit a20f78ab8e

View file

@ -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);
}
}
}