nyx

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

commit b123c4e148e977c80ee622932abfd6fb497e11f1
parent 9121680874b63423379858cdb82576ffcbea4cba
Author: night0721 <[email protected]>
Date:   Sat,  5 Feb 2022 09:01:53 +0800

Merge branch 'main' of https://github.com/night0721/cath.exe

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