From 45f6cc57ef53163928a5f792e2cf6bcb1d201a6c Mon Sep 17 00:00:00 2001 From: Tyman Date: Fri, 7 May 2021 20:09:01 +0000 Subject: format --- src/commands/info/PingCommand.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/commands') diff --git a/src/commands/info/PingCommand.ts b/src/commands/info/PingCommand.ts index bb3324d..7f8ab6b 100644 --- a/src/commands/info/PingCommand.ts +++ b/src/commands/info/PingCommand.ts @@ -45,13 +45,13 @@ export default class PingCommand extends BotCommand { public async execSlash(message: CommandInteraction): Promise { const timestamp1 = message.createdTimestamp; await message.reply('Pong!'); - const timestamp2 = await message.fetchReply().then(m => (m as Message).createdTimestamp) + const timestamp2 = await message + .fetchReply() + .then((m) => (m as Message).createdTimestamp); const botLatency = `\`\`\`\n ${Math.floor( timestamp2 - timestamp1 )}ms \`\`\``; - const apiLatency = `\`\`\`\n ${Math.round( - this.client.ws.ping - )}ms \`\`\``; + const apiLatency = `\`\`\`\n ${Math.round(this.client.ws.ping)}ms \`\`\``; const embed = new MessageEmbed() .setTitle('Pong! 🏓') .addField('Bot Latency', botLatency, true) @@ -63,9 +63,7 @@ export default class PingCommand extends BotCommand { .setTimestamp(); await message.editReply({ content: null, - embeds: [ - embed - ] + embeds: [embed] }); } } -- cgit