Skip to content

Commit

Permalink
Fix voiceStateUpdate on null value
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPresso committed Jan 12, 2024
1 parent 972a0d0 commit 78a7ce3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events/voiceStateUpdate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const { PermissionFlagsBits, ChannelType } = require("discord.js");

module.exports = async (client, oldState, newState) => {
if(!client.config.createVoiceChannels)
return;

if(oldState.channelId === newState.channelId)
return;

Expand Down

0 comments on commit 78a7ce3

Please sign in to comment.