zumito-framework 1.1.38 → 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.
- package/dist/ZumitoFramework.js +2 -2
- package/package.json +1 -1
package/dist/ZumitoFramework.js
CHANGED
|
@@ -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('
|
|
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('
|
|
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
|
});
|