From bba161792678565022715a0eb2208d029f8e5f7c Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 23 Mar 2024 22:45:10 +0100 Subject: [PATCH] bugfix: logging user id --- events/channels/voiceStateUpdate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/events/channels/voiceStateUpdate.js b/events/channels/voiceStateUpdate.js index 5118b42..83a0590 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -113,7 +113,9 @@ export async function execute(oldState, newState) { step = 'move to'; // Move user to private channel await newState.setChannel(privCh); - console.info(`[INFO] User '${name}' created private channel with ID ${privCh.id}.`); + console.info( + `[INFO] User with ID '${member.id}' created private channel with ID ${privCh.id}.` + ); } catch (error) { console.error(error); await member.send(`Failed to ${step} channel! Please contact server staff.`);