diff options
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/help.ts | 8 | ||||
-rw-r--r-- | src/commands/info/pronouns.ts | 12 |
2 files changed, 15 insertions, 5 deletions
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<void> { 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; } |