mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:53:17 +00:00
Update voiceStateUpdate event
This commit is contained in:
parent
8d12a83691
commit
3654dd58ba
@ -8,7 +8,7 @@ module.exports = {
|
||||
async execute(client, oldState, newState) {
|
||||
if (oldState.channel === null) return;
|
||||
let change = false;
|
||||
const radio = client.radio.get(newState.guild.id);
|
||||
const radio = client.radio?.get(newState.guild.id);
|
||||
if (!radio) return;
|
||||
|
||||
if (newState.member.id === client.user.id && oldState.member.id === client.user.id) {
|
||||
|
Loading…
Reference in New Issue
Block a user