From ea54565c6af12fd3c523136c5f8342b9c59cdbec Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 8 Feb 2024 17:50:32 +0100 Subject: [PATCH] bugfix: case sensitive --- events/channels/voiceStateUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/channels/voiceStateUpdate.js b/events/channels/voiceStateUpdate.js index af4c852..698a16e 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -19,7 +19,7 @@ const vcPermissionOverwrites = [ PermissionFlagsBits.UseVAD ]; -const getchannel = async (member, channels) => { +const getChannel = async (member, channels) => { // Check database for existing channel const ownCh = await VoiceChannel.findOne({ where: { @@ -73,7 +73,7 @@ export async function execute(_, state) { const channels = state.guild.channels; let step = 'create'; try { - const privCh = await getchannel(member, channels); + const privCh = await getChannel(member, channels); step = 'move to'; // Move user to private channel