CatalystMoon/commands/Info/ping.js

17 lines
514 B
JavaScript
Raw Normal View History

2022-07-23 08:04:10 -04:00
const { EmbedBuilder } = require('discord.js');
2022-07-22 18:09:13 -04:00
module.exports = {
name: "ping",
description: "Returns websocket latency",
run: async (client, interaction) => {
2022-07-23 08:04:10 -04:00
const embed = new EmbedBuilder()
2022-07-22 18:09:13 -04:00
.setColor("#FF0000")
.setTitle("🏓 Pong!")
.setDescription(`Latency : ${client.ws.ping}ms`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
},
};