Update voiceStateUpdate event

This commit is contained in:
Christer Warén 2022-04-06 22:40:26 +03:00
parent 8d12a83691
commit 3654dd58ba

View File

@ -8,7 +8,7 @@ module.exports = {
async execute(client, oldState, newState) { async execute(client, oldState, newState) {
if (oldState.channel === null) return; if (oldState.channel === null) return;
let change = false; let change = false;
const radio = client.radio.get(newState.guild.id); const radio = client.radio?.get(newState.guild.id);
if (!radio) return; if (!radio) return;
if (newState.member.id === client.user.id && oldState.member.id === client.user.id) { if (newState.member.id === client.user.id && oldState.member.id === client.user.id) {