Holana/slash/ping.js

22 lines
768 B
JavaScript
Raw Normal View History

2023-04-29 09:59:08 +00:00
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: 'ping',
description: '🏓Check my ping!',
run: async (client, interaction) => {
let pembed = new EmbedBuilder()
.setTitle("Pong!")
.setColor('#2F3136')
.setThumbnail('https://ellie.gcoms.xyz/Ellise.png')
.addFields({name: '**Latency**', value: `\`\`\`ini\n[ ${Date.now() - interaction.createdTimestamp}ms ]\n\`\`\``, inline: true},
{name: '**API Latency**', value: `\`\`\`ini\n[ ${Math.round(client.ws.ping)}ms ]\n\`\`\``, inline: true})
.setTimestamp()
.setFooter({
text: `©️ Holana`,
iconURL: ('https://ellie.gcoms.xyz/Ellise.png')
})
interaction.reply({
embeds: [pembed]
});
},
};