From 57de6733b62c83ff197f9236f71545d8ef1e1103 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 May 2021 04:01:47 +0000 Subject: Automatically format code --- src/commands/info/help.ts | 8 ++++++-- src/commands/info/pronouns.ts | 12 +++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'src/commands/info') diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 7f6c8f4..0629bf1 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -59,10 +59,14 @@ export default class HelpCommand extends BushCommand { const embed = new MessageEmbed() .setColor([155, 200, 200]) .setTitle(`\`${command.description.usage ? command.description.usage : ''}\``) - .addField('Description', `${command.description.content ? command.description.content : ''} ${command.ownerOnly ? '\n__Owner Only__' : ''}`); + .addField( + 'Description', + `${command.description.content ? command.description.content : ''} ${command.ownerOnly ? '\n__Owner Only__' : ''}` + ); if (command.aliases.length > 1) embed.addField('Aliases', `\`${command.aliases.join('` `')}\``, true); - if (command.description.examples && command.description.examples.length) embed.addField('Examples', `\`${command.description.examples.join('`\n`')}\``, true); + if (command.description.examples && command.description.examples.length) + embed.addField('Examples', `\`${command.description.examples.join('`\n`')}\``, true); return embed; } } diff --git a/src/commands/info/pronouns.ts b/src/commands/info/pronouns.ts index c53c542..740eb68 100644 --- a/src/commands/info/pronouns.ts +++ b/src/commands/info/pronouns.ts @@ -61,7 +61,9 @@ export default class PronounsCommand extends BushCommand { } async sendResponse(message: Message | CommandInteraction, user: User, author: boolean): Promise { try { - const apiRes: { pronouns: pronounsType } = await got.get(`https://pronoundb.org/api/v1/lookup?platform=discord&id=${user.id}`).json(); + const apiRes: { pronouns: pronounsType } = await got + .get(`https://pronoundb.org/api/v1/lookup?platform=discord&id=${user.id}`) + .json(); if (message instanceof Message) { message.reply( new MessageEmbed({ @@ -88,9 +90,13 @@ export default class PronounsCommand extends BushCommand { } catch (e) { if (e instanceof HTTPError && e.response.statusCode === 404) { if (author) { - await message.reply('You do not appear to have any pronouns set. Please go to https://pronoundb.org/ and set your pronouns.'); + await message.reply( + 'You do not appear to have any pronouns set. Please go to https://pronoundb.org/ and set your pronouns.' + ); } else { - await message.reply(`${user.tag} does not appear to have any pronouns set. Please tell them to go to https://pronoundb.org/ and set their pronouns.`); + await message.reply( + `${user.tag} does not appear to have any pronouns set. Please tell them to go to https://pronoundb.org/ and set their pronouns.` + ); } } else throw e; } -- cgit