From 84f754dd5bd2f867f3e1c30dc4fa2fa8a8a39a97 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 28 Feb 2024 21:18:14 +0100 Subject: [PATCH] clean up: consistant naming --- 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 5d4b07c..3d0ab97 100644 --- a/events/channels/voiceStateUpdate.js +++ b/events/channels/voiceStateUpdate.js @@ -19,7 +19,7 @@ const getChannel = async (member, guildChs, channel) => { // Check database for existing channel const ownCh = await VoiceChannel.findOne({ where: { - owner: member.user.id + owner: member.id } }); if (ownCh !== null) return await guildChs.fetch(ownCh.id); @@ -39,7 +39,7 @@ const getChannel = async (member, guildChs, channel) => { // Save newly created channel await VoiceChannel.create({ id: privCh.id, - owner: member.user.id + owner: member.id }); return privCh;