mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
remove typeof
This commit is contained in:
@@ -30,11 +30,11 @@ export async function editMember(guildId: bigint, memberId: bigint, options: Mod
|
|||||||
throw new Error(Errors.MEMBER_NOT_IN_VOICE_CHANNEL);
|
throw new Error(Errors.MEMBER_NOT_IN_VOICE_CHANNEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.mute !== "undefined") {
|
if (options.mute !== undefined) {
|
||||||
requiredPerms.add("MUTE_MEMBERS");
|
requiredPerms.add("MUTE_MEMBERS");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.deaf !== "undefined") {
|
if (options.deaf !== undefined) {
|
||||||
requiredPerms.add("DEAFEN_MEMBERS");
|
requiredPerms.add("DEAFEN_MEMBERS");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user