Discord.js 13 + some additional preparation for slash commands

This commit is contained in:
mmacierzanka committed 2021-08-07 01:39:36 +02:00
1 parent ff14817f32
commit 861faec976
8 files changed
+173 -70

No files matched your search

+4 -3
View File
@@ -10,7 +10,7 @@ export const ProcessArgument = (
type: ParameterType
): ParameterResolvable => {
switch (type) {
case "TEXT":
/* case "TEXT":
return a;
case "NUMBER":
const numF = parseFloat(a);
@@ -26,8 +26,9 @@ export const ProcessArgument = (
return false;
} else {
throw new ParameterTypeError(a, type);
}
}*/
default:
throw new TypeError("Invalied type specified");
return a;
//throw new TypeError("Invalied type specified");
}
};