wolfcountBot/commands/Info/ping.js

18 lines
531 B
JavaScript
Raw Normal View History

2023-04-28 07:48:43 -04:00
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: "ping",
private: true,
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] });
},
};