CatalystMoon/commands/Info/ping.js

18 lines
584 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",
2024-10-03 18:00:03 -04:00
private: true, // Mark this command as private for ephemeral replies
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!")
2024-10-03 18:00:03 -04:00
.setDescription(`Latency: ${client.ws.ping}ms`)
2022-07-22 18:09:13 -04:00
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
},
};