2022-09-24 13:06:19 -04:00
|
|
|
const { EmbedBuilder } = require('discord.js');
|
2022-10-17 00:38:56 -04:00
|
|
|
const { ContextMenuCommandBuilder, ApplicationCommandType } = require('discord.js');
|
2022-09-24 13:06:19 -04:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: "ping",
|
|
|
|
description: "Returns websocket latency",
|
|
|
|
|
|
|
|
run: async (client, interaction) => {
|
2022-10-17 00:38:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
const { ContextMenuCommandBuilder, ApplicationCommandType } = require('discord.js');
|
|
|
|
|
|
|
|
const data = new ContextMenuCommandBuilder()
|
|
|
|
.setName('User Information')
|
|
|
|
.setType(ApplicationCommandType.User);
|
|
|
|
|
2022-09-24 13:06:19 -04:00
|
|
|
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] });
|
|
|
|
},
|
|
|
|
};
|