diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-02 19:50:15 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-02 19:50:15 -0400 |
commit | a6b7046c6b82862606679b9860714ed7ee6b932b (patch) | |
tree | 1133bb82899577f909226b9ca4586116e4c0d19f /src | |
parent | 29cebebc18e9570b699caef8ebb04f4d3934722d (diff) | |
download | tanzanite-a6b7046c6b82862606679b9860714ed7ee6b932b.tar.gz tanzanite-a6b7046c6b82862606679b9860714ed7ee6b932b.tar.bz2 tanzanite-a6b7046c6b82862606679b9860714ed7ee6b932b.zip |
fix prefer-template
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dev/test.ts | 2 | ||||
-rw-r--r-- | src/commands/info/guildInfo.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts index 104861f..c77d7ec 100644 --- a/src/commands/dev/test.ts +++ b/src/commands/dev/test.ts @@ -103,7 +103,7 @@ export default class TestCommand extends BushCommand { const footer = { text: 'This is a footer', iconURL: _avatar }; const fields = []; for (let i = 0; i < 25; i++) { - fields.push({ name: 'Field ' + i, value: 'Field Value ' + i }); + fields.push({ name: `Field ${i}`, value: `Field Value ${i}` }); } const c = util.colors; const o = { description, author, footer, fields }!; diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts index 0aa5fc0..f70b741 100644 --- a/src/commands/info/guildInfo.ts +++ b/src/commands/info/guildInfo.ts @@ -66,7 +66,7 @@ export default class GuildInfoCommand extends BushCommand { if (!isPreview && guild instanceof Guild) { if (guild.premiumTier) emojis.push( - client.consts.mappings.otherEmojis[('BOOST_' + guild.premiumTier) as keyof typeof client.consts.mappings.otherEmojis] + client.consts.mappings.otherEmojis[`BOOST_${guild.premiumTier}` as keyof typeof client.consts.mappings.otherEmojis] ); await guild.fetch(); const channelTypes = [ @@ -213,7 +213,7 @@ export default class GuildInfoCommand extends BushCommand { guildInfoEmbed.addField('ยป Security', guildSecurity.join('\n')); } if (emojis) { - guildInfoEmbed.setDescription('\u200B' /*zero width space*/ + emojis.join(' ')); + guildInfoEmbed.setDescription(`\u200B${/*zero width space*/ emojis.join(' ')}`); } return await message.util.reply({ embeds: [guildInfoEmbed] }); } |