zumito-framework 1.1.39 → 1.1.40

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.
@@ -246,7 +246,7 @@ export class ZumitoFramework {
246
246
  .map((command) => {
247
247
  let slashCommand = new SlashCommandBuilder()
248
248
  .setName(command.name)
249
- .setDescription(this.translations.get('commands.' + command.name + '.description', 'en'));
249
+ .setDescription(this.translations.get('command.' + command.name + '.description', 'en'));
250
250
  if (command.args) {
251
251
  command.args.forEach((arg) => {
252
252
  let method;
@@ -269,7 +269,7 @@ export class ZumitoFramework {
269
269
  }
270
270
  slashCommand[method]((option) => {
271
271
  option.setName(arg.name);
272
- option.setDescription(this.translations.get('commands.' + command.name + '.args.' + arg.name + '.description', 'en'));
272
+ option.setDescription(this.translations.get('command.' + command.name + '.args.' + arg.name + '.description', 'en'));
273
273
  option.setRequired(!arg.optional);
274
274
  return option;
275
275
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",