bugfix: logging user id

This commit is contained in:
Baipyrus 2024-03-23 22:45:10 +01:00
parent b8adefd093
commit bba1617926

View File

@ -113,7 +113,9 @@ export async function execute(oldState, newState) {
step = 'move to'; step = 'move to';
// Move user to private channel // Move user to private channel
await newState.setChannel(privCh); 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) { } catch (error) {
console.error(error); console.error(error);
await member.send(`Failed to ${step} channel! Please contact server staff.`); await member.send(`Failed to ${step} channel! Please contact server staff.`);