forked from snxraven/DiscordJS-v14-Template
18 lines
584 B
JavaScript
18 lines
584 B
JavaScript
const { EmbedBuilder } = require('discord.js');
|
|
|
|
module.exports = {
|
|
name: "ping",
|
|
private: true, // Mark this command as private for ephemeral replies
|
|
description: "Returns websocket latency",
|
|
|
|
run: async (client, interaction) => {
|
|
const embed = new EmbedBuilder()
|
|
.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] });
|
|
},
|
|
};
|