Archived
Discord.js 13 + some additional preparation for slash commands
This commit is contained in:
1 parent
ff14817f32
commit
861faec976
8 files changed
+173
-70
No files matched your search
+4
-3
@@ -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");
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user