fix always false if check

This commit is contained in:
ITOH
2021-05-23 18:20:46 +02:00
parent db2fd9929d
commit 8ca30b813a
+2 -2
View File
@@ -26,8 +26,8 @@ export async function editMember(guildId: bigint, memberId: bigint, options: Mod
if (
typeof options.mute !== "undefined" ||
typeof options.deaf !== "undefined" ||
typeof options.channelId !== "undefined" ||
"null"
// "object" to do simple null check
(typeof options.channelId !== "undefined" && typeof options.channelId !== "object")
) {
const memberVoiceState = (await cacheHandlers.get("guilds", guildId))?.voiceStates.get(memberId);