This commit is contained in:
Night Kaly 2022-02-04 12:09:24 +00:00
parent e1d538cb33
commit c45e40cb32

View file

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