From ca65ee382c9590ac708d04ac704d4007465ccf04 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 28 Apr 2022 18:25:40 +0700 Subject: [PATCH] fix setDeaf + setMute --- src/structures/ClientUser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 147bfeb..5289542 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -269,7 +269,7 @@ class ClientUser extends User { if (typeof status !== 'boolean') throw new Error('Deaf status must be a boolean.'); this.client.ws.broadcast({ op: Opcodes.VOICE_STATE_UPDATE, - d: { guild_id: null, channel_id: null, self_deaf: status }, + d: { self_deaf: status }, }); return status; } @@ -283,7 +283,7 @@ class ClientUser extends User { if (typeof status !== 'boolean') throw new Error('Mute status must be a boolean.'); this.client.ws.broadcast({ op: Opcodes.VOICE_STATE_UPDATE, - d: { guild_id: null, channel_id: null, self_mute: status }, + d: { self_mute: status }, }); return status; }