diff --git a/backend/src/plugins/ModActions.ts b/backend/src/plugins/ModActions.ts index e10d8a71..0e4b0acb 100644 --- a/backend/src/plugins/ModActions.ts +++ b/backend/src/plugins/ModActions.ts @@ -842,6 +842,9 @@ export class ModActionsPlugin extends ZeppelinPlugin { 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"); }