Add debug logging for null user IDs in mutes
This commit is contained in:
parent
a47836977c
commit
cc69bc5be4
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue