aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/ping.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-25 23:47:40 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-25 23:47:40 -0500
commit840cca672d681c36f980a06fb79a4e2c01bd69ac (patch)
tree82c40a7fe3e1a2bc6367fed6e3d26b6c7dceb256 /src/commands/info/ping.ts
parent6ca99336a416389dd2b0b8c4c6a7b2ef87bc9fef (diff)
downloadtanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.gz
tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.bz2
tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.zip
I love breaking changes!!!!
Diffstat (limited to 'src/commands/info/ping.ts')
-rw-r--r--src/commands/info/ping.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts
index 1a8f542..35e9748 100644
--- a/src/commands/info/ping.ts
+++ b/src/commands/info/ping.ts
@@ -1,5 +1,5 @@
import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
-import { MessageEmbed, Permissions, type Message } from 'discord.js';
+import { Embed, Permissions, type Message } from 'discord.js';
export default class PingCommand extends BushCommand {
public constructor() {
@@ -20,10 +20,10 @@ export default class PingCommand extends BushCommand {
const timestamp: number = message.editedTimestamp ? message.editedTimestamp : message.createdTimestamp;
const botLatency = `${'```'}\n ${Math.round(sentMessage.createdTimestamp - timestamp)}ms ${'```'}`;
const apiLatency = `${'```'}\n ${Math.round(message.client.ws.ping)}ms ${'```'}`;
- const embed = new MessageEmbed()
+ const embed = new Embed()
.setTitle('Pong! 🏓')
- .addField('Bot Latency', botLatency, true)
- .addField('API Latency', apiLatency, true)
+ .addField({ name: 'Bot Latency', value: botLatency, inline: true })
+ .addField({ name: 'API Latency', value: apiLatency, inline: true })
.setFooter({ text: message.author.username, iconURL: message.author.displayAvatarURL() })
.setColor(util.colors.default)
.setTimestamp();
@@ -39,10 +39,10 @@ export default class PingCommand extends BushCommand {
const timestamp2 = await message.interaction.fetchReply().then((m) => (m as Message).createdTimestamp);
const botLatency = `${'```'}\n ${Math.round(timestamp2 - timestamp1)}ms ${'```'}`;
const apiLatency = `${'```'}\n ${Math.round(client.ws.ping)}ms ${'```'}`;
- const embed = new MessageEmbed()
+ const embed = new Embed()
.setTitle('Pong! 🏓')
- .addField('Bot Latency', botLatency, true)
- .addField('API Latency', apiLatency, true)
+ .addField({ name: 'Bot Latency', value: botLatency, inline: true })
+ .addField({ name: 'API Latency', value: apiLatency, inline: true })
.setFooter({
text: message.interaction.user.username,
iconURL: message.interaction.user.displayAvatarURL()