aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/ping.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-24 18:29:57 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-24 18:29:57 -0400
commit9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c (patch)
tree4b95a06ff6991207ab8b8e93f0bca26e24a97f80 /src/commands/info/ping.ts
parent6b8115ab1ec94d4330019fc7a93e094d9d64c48e (diff)
downloadtanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.tar.gz
tanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.tar.bz2
tanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.zip
fix: breaking changes
Diffstat (limited to 'src/commands/info/ping.ts')
-rw-r--r--src/commands/info/ping.ts17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts
index 04ceedd..086a77a 100644
--- a/src/commands/info/ping.ts
+++ b/src/commands/info/ping.ts
@@ -22,8 +22,10 @@ export default class PingCommand extends BushCommand {
const apiLatency = `${'```'}\n ${Math.round(message.client.ws.ping)}ms ${'```'}`;
const embed = new EmbedBuilder()
.setTitle('Pong! 🏓')
- .addFields({ name: 'Bot Latency', value: botLatency, inline: true })
- .addFields({ name: 'API Latency', value: apiLatency, inline: true })
+ .addFields([
+ { name: 'Bot Latency', value: botLatency, inline: true },
+ { name: 'API Latency', value: apiLatency, inline: true }
+ ])
.setFooter({ text: message.author.username, iconURL: message.author.displayAvatarURL() })
.setColor(util.colors.default)
.setTimestamp();
@@ -41,12 +43,11 @@ export default class PingCommand extends BushCommand {
const apiLatency = `${'```'}\n ${Math.round(client.ws.ping)}ms ${'```'}`;
const embed = new EmbedBuilder()
.setTitle('Pong! 🏓')
- .addFields({ name: 'Bot Latency', value: botLatency, inline: true })
- .addFields({ name: 'API Latency', value: apiLatency, inline: true })
- .setFooter({
- text: message.interaction.user.username,
- iconURL: message.interaction.user.displayAvatarURL()
- })
+ .addFields([
+ { name: 'Bot Latency', value: botLatency, inline: true },
+ { name: 'API Latency', value: apiLatency, inline: true }
+ ])
+ .setFooter({ text: message.interaction.user.username, iconURL: message.interaction.user.displayAvatarURL() })
.setColor(util.colors.default)
.setTimestamp();
await message.interaction.editReply({