CatalystMoon/commands/Info/ping.js

18 lines
531 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",
2022-09-28 19:05:07 -04:00
private: true,
2022-07-22 18:09:13 -04:00
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] });
},
};