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 0f465ffa2b
commit 9562f9d528
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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