zumito-framework 1.7.0 → 1.7.1

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('Invalid argument type ' + arg.type);
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('Invalid argument type ' + arg.type);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",