debug: include guild id in RecoverablePluginError logs

This commit is contained in:
Dragory 2021-10-17 19:19:53 +03:00
parent 19b7b4a5ee
commit 5be1e8e5b0
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -65,7 +65,7 @@ function errorHandler(err) {
// Log it in the console as a warning and post a warning to the guild's log.
// tslint:disable:no-console
console.warn(`${guildName}: [${err.code}] ${err.message}`);
console.warn(`${guildId} ${guildName}: [${err.code}] ${err.message}`);
if (err.guild) {
const logs = new GuildLogs(err.guild.id);