mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user