zumito-framework 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,7 +47,7 @@ export class SlashCommandRefresher {
|
|
|
47
47
|
method = 'addRoleOption';
|
|
48
48
|
break;
|
|
49
49
|
default:
|
|
50
|
-
throw new Error(
|
|
50
|
+
throw new Error(`Invalid argument type ${arg.type} in command ${command.name} for argument ${arg.name}`);
|
|
51
51
|
}
|
|
52
52
|
slashCommand[method]((option) => {
|
|
53
53
|
option.setName(arg.name);
|
|
@@ -154,7 +154,7 @@ export class CommandManager {
|
|
|
154
154
|
method = 'addRoleOption';
|
|
155
155
|
break;
|
|
156
156
|
default:
|
|
157
|
-
throw new Error(
|
|
157
|
+
throw new Error(`Invalid argument type ${arg.type} in command ${command.name} for argument ${arg.name}`);
|
|
158
158
|
}
|
|
159
159
|
slashCommand[method]((option) => {
|
|
160
160
|
option.setName(arg.name);
|