🏷️ remove "as string"

This commit is contained in:
Axel Olausson Holtenäs 2022-04-13 21:20:00 +02:00
parent 78513f99ed
commit ae52fc5489
No known key found for this signature in database
GPG key ID: 9347A5E873995701

View file

@ -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] });