mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Only strip first beautify indent
This commit is contained in:
@@ -350,8 +350,7 @@ client.on('guildMemberRemove', async member => {
|
||||
});
|
||||
|
||||
client.on('voiceStateUpdate', async (oldState, newState) => {
|
||||
if (newState.channel) return;
|
||||
if (!oldState.channel) return;
|
||||
if (newState.channel || !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