diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-11-28 14:28:54 +0000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-11-28 14:28:54 +0000 |
commit | abcafe76284d190e41941571999e280b402bd8e1 (patch) | |
tree | 90706041cc966f69495c526072ee044f3b1655fd /src/commands/info | |
parent | 453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 (diff) | |
download | tanzanite-abcafe76284d190e41941571999e280b402bd8e1.tar.gz tanzanite-abcafe76284d190e41941571999e280b402bd8e1.tar.bz2 tanzanite-abcafe76284d190e41941571999e280b402bd8e1.zip |
Automatically format code
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/help.ts | 10 | ||||
-rw-r--r-- | src/commands/info/userInfo.ts | 5 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 3b7883f..629e57f 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -81,16 +81,10 @@ export default class HelpCommand extends BushCommand { .setTitle(`${command.id} Command`) .setDescription(`${command.description ?? '*This command does not have a description.*'}`); if (command.usage?.length) { - embed.addField( - `» Usage${command.usage.length > 1 ? 's' : ''}`, - command.usage.map((u) => `\`${u}\``).join('\n') - ); + embed.addField(`» Usage${command.usage.length > 1 ? 's' : ''}`, command.usage.map((u) => `\`${u}\``).join('\n')); } if (command.examples?.length) { - embed.addField( - `» Example${command.examples.length > 1 ? 's' : ''}`, - command.examples.map((u) => `\`${u}\``).join('\n') - ); + embed.addField(`» Example${command.examples.length > 1 ? 's' : ''}`, command.examples.map((u) => `\`${u}\``).join('\n')); } if (command.aliases?.length > 1) embed.addField('» Aliases', `\`${command.aliases.join('` `')}\``); if ( diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 8ed6304..89d3c23 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -99,7 +99,10 @@ export default class UserInfoCommand extends BushCommand { if (member?.displayHexColor) serverUserInfo.push(`**Display Color:** ${member.displayHexColor}`); if (user.id == '322862723090219008' && message.guild?.id == client.consts.mappings.guilds.bush) serverUserInfo.push(`**General Deletions:** 1⅓`); - if ((['384620942577369088', '496409778822709251'] as const).includes(user.id) && message.guild?.id == client.consts.mappings.guilds.bush) + if ( + (['384620942577369088', '496409778822709251'] as const).includes(user.id) && + message.guild?.id == client.consts.mappings.guilds.bush + ) serverUserInfo.push(`**General Deletions:** ⅓`); if (member?.nickname) serverUserInfo.push(`**Nickname:** ${util.discord.escapeMarkdown(member?.nickname)}`); if (serverUserInfo.length) |