remove unnecessary null check

This commit is contained in:
ITOH
2021-05-25 09:12:13 +02:00
committed by GitHub
parent 803cbfac4a
commit 1f0446f42d
+1 -1
View File
@@ -23,7 +23,7 @@ export async function editMember(guildId: bigint, memberId: bigint, options: Mod
if (options.roles) requiredPerms.add("MANAGE_ROLES");
if (options.mute !== undefined || options.deaf !== undefined || options.channelId || options.channelId === null) {
if (options.mute !== undefined || options.deaf !== undefined || options.channelId !== undefined) {
const memberVoiceState = (await cacheHandlers.get("guilds", guildId))?.voiceStates.get(memberId);
if (!memberVoiceState?.channelId) {