From ae52fc5489ee8da308a14527bb01a4f785af584f Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Wed, 13 Apr 2022 21:20:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20remove=20"as=20string"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/utilities/modules/stats.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/utilities/modules/stats.ts b/src/plugins/utilities/modules/stats.ts index c2a41b0..ee26dc1 100644 --- a/src/plugins/utilities/modules/stats.ts +++ b/src/plugins/utilities/modules/stats.ts @@ -24,22 +24,22 @@ export default async (interaction: CommandInteraction) => { fields: [ { name: "⏰ Latency", - value: `${Date?.now() - interaction?.createdTimestamp} ms` as string, + value: `${Date?.now() - interaction?.createdTimestamp} ms`, inline: true, }, { name: "⏰ API Latency", - value: `${Math?.round(client?.ws?.ping)} ms` as string, + value: `${Math?.round(client?.ws?.ping)} ms`, inline: true, }, { name: "⏰ Uptime", - value: `${uptime}` as string, + value: `${uptime}`, inline: false, }, { name: "📈 Guilds", - value: `${client?.guilds?.cache?.size}` as string, + value: `${client?.guilds?.cache?.size}`, inline: true, }, { @@ -47,15 +47,15 @@ export default async (interaction: CommandInteraction) => { value: `${client?.guilds?.cache?.reduce( (acc, guild) => acc + guild?.memberCount, 0 - )}` as string, + )}`, inline: true, }, ], color: successColor, timestamp: new Date(), footer: { - iconURL: footerIcon as string, - text: footerText as string, + iconURL: footerIcon, + text: footerText, }, }; interaction?.editReply({ embeds: [interactionEmbed] });