nyx

The first CODM discrod bot -- cath.exe Template
git clone https://codeberg.org/night0721/nyx
Log | Files | Refs | LICENSE

commit c45e40cb32e0fc0024487135f132fd5df4688418
parent e1d538cb337cbc539683fa98628376b62d3b10c7
Author: Night Kaly <[email protected]>
Date:   Fri,  4 Feb 2022 12:09:24 +0000

bruh

Diffstat:
Mevents/interactionCreate.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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