3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Add debug logging for null user IDs in mutes

This commit is contained in:
Dragory 2020-06-04 03:55:54 +03:00
parent a47836977c
commit cc69bc5be4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -842,6 +842,9 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
this.sendErrorMessage(msg.channel, "Could not mute the user: unknown member");
} else {
logger.error(`Failed to mute user ${user.id}: ${e.stack}`);
if (user.id == null) {
console.trace("[DEBUG] Null user.id for mute");
}
this.sendErrorMessage(msg.channel, "Could not mute the user");
}