From fba3f26f57edc178a854b62e2a85de83715a2ce4 Mon Sep 17 00:00:00 2001 From: entar Date: Wed, 21 May 2025 07:39:21 +0700 Subject: [PATCH] Types --- commands/extra.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/extra.js b/commands/extra.js index 9fb7346..24a6b33 100644 --- a/commands/extra.js +++ b/commands/extra.js @@ -7,10 +7,10 @@ module.exports = [ description: "Kill every1", arguments: [GuildMember.name, GuildChannel.name], run: (ctx, member, channel) => { - if (!member || (member || !member.user) ) { + if (!member || !(member instanceof GuildMember) ) { return ctx.reply("Member invalid.") } - if (!channel || (channel || !channel.id)) { + if (!channel || !(channel instanceof GuildChannel) ) { return ctx.reply("Channel invalid.") }