From cc69bc5be477e2619e656c720e7cc3734f4317a2 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 4 Jun 2020 03:55:54 +0300 Subject: [PATCH] Add debug logging for null user IDs in mutes --- backend/src/plugins/ModActions.ts | 3 +++ 1 file changed, 3 insertions(+) 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"); }