From c45e40cb32e0fc0024487135f132fd5df4688418 Mon Sep 17 00:00:00 2001 From: Night Kaly <77528305+night0721@users.noreply.github.com> Date: Fri, 4 Feb 2022 12:09:24 +0000 Subject: [PATCH] bruh --- events/interactionCreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/interactionCreate.js b/events/interactionCreate.js index eb03d67..1c6b247 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -23,7 +23,7 @@ client.on("interactionCreate", async interaction => { if (x.value) args.push(x.value); }); } - if (option.type === 1) { + if (option.type === "SUB_COMMAND") { if (option.name) args.push(option.name); option.options?.forEach(x => { if (x.value) args.push(x.value);