diff --git a/events/channels/voiceStateUpdate.js b/events/channels/voiceStateUpdate.js index 7d33a76..e0ce9a3 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -81,7 +81,7 @@ export const name = Events.VoiceStateUpdate; * @param {VoiceState} newState */ export async function execute(oldState, newState) { - const { channel } = newState; + const { channel, member } = newState; let step = 'delete'; try { await leftVoiceChat(oldState); @@ -96,9 +96,6 @@ export async function execute(oldState, newState) { }); if (createCh === null) return; - // Extract user data - const member = newState.member; - step = 'create'; // Extract channel data const channels = newState.guild.channels;