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);