From b9cfd331c5490e34bbb5f89b2fd523ed3df2c1a2 Mon Sep 17 00:00:00 2001 From: Navy Date: Wed, 6 May 2020 19:28:40 +0300 Subject: [PATCH] some thing --- language/languages/en_us/en_us_general.lang | 5 ++++- structure/extensions/Message.js | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/language/languages/en_us/en_us_general.lang b/language/languages/en_us/en_us_general.lang index 296e02f..e3b9619 100644 --- a/language/languages/en_us/en_us_general.lang +++ b/language/languages/en_us/en_us_general.lang @@ -9,4 +9,7 @@ switch({component}) { case "inhibitor": "inhibitor": break; -} \ No newline at end of file +} + +[EXAMPLES] +Example usage \ No newline at end of file diff --git a/structure/extensions/Message.js b/structure/extensions/Message.js index db5e3d8..c8934bc 100644 --- a/structure/extensions/Message.js +++ b/structure/extensions/Message.js @@ -108,7 +108,7 @@ const Message = Structures.extend('Message', (Message) => { if(opts.emoji) str = `${emojis[opts.emoji]} ${str}`; if(opts.reply) str = `<@!${this.author.id}> ${str}`; } - const message = await this.channel.send(str); + await this.channel.send(str); return await this.channel.awaitMessages(m => m.author.id === this.author.id, { max: 1, time: 30000, errors: ['time'] }) .then((collected) => { return collected.first(); @@ -122,7 +122,13 @@ const Message = Structures.extend('Message', (Message) => { //TODO: format this return await this.embed({ title: `**${this.command.name.toUpperCase()} USAGE**`, - description: `${this.format(`C_${this.command.name.toUpperCase()}_USAGE`)}\n${this.format(`C_${this.command.name.toUpperCase()}_EXAMPLES`)}` + description: this.format(`C_${this.command.name.toUpperCase()}_USAGE`), + fields: [ + { + name: this.format('EXAMPLES'), + value: this.format(`C_${this.command.name.toUpperCase()}_EXAMPLES`) + } + ] }); }