first commit

This commit is contained in:
Raven Scott
2022-07-22 17:09:13 -05:00
commit 2966e4c618
7 changed files with 151 additions and 0 deletions

16
commands/Info/ping.js Normal file
View File

@ -0,0 +1,16 @@
const { Embed } = require("discord.js");
module.exports = {
name: "ping",
description: "Returns websocket latency",
run: async (client, interaction) => {
const embed = new Embed()
.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] });
},
};