aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-05-29 04:01:47 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-05-29 04:01:47 +0000
commit57de6733b62c83ff197f9236f71545d8ef1e1103 (patch)
tree71f0920b153dfc4031f35d7c62907c9dc28d540d /src/commands/info
parent28e98a1131fc2e11fa3cf8aa20fe03e57af38a12 (diff)
downloadtanzanite-57de6733b62c83ff197f9236f71545d8ef1e1103.tar.gz
tanzanite-57de6733b62c83ff197f9236f71545d8ef1e1103.tar.bz2
tanzanite-57de6733b62c83ff197f9236f71545d8ef1e1103.zip
Automatically format code
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/help.ts8
-rw-r--r--src/commands/info/pronouns.ts12
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;
}