mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Fix
This commit is contained in:
@@ -351,6 +351,7 @@ client.on('guildMemberRemove', async member => {
|
||||
|
||||
client.on('voiceStateUpdate', async (oldState, newState) => {
|
||||
if (newState.channel) return;
|
||||
if (!oldState.channel) return;
|
||||
if (oldState.id === client.user.id) {
|
||||
const dispatcher = client.dispatchers.get(oldState.guild.id);
|
||||
if (!dispatcher) return;
|
||||
|
||||
Reference in New Issue
Block a user