2023-08-21 11:23:36 -04:00
|
|
|
const { SlashCommandBuilder } = require('discord.js');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
data: new SlashCommandBuilder()
|
2023-08-21 12:19:21 -04:00
|
|
|
.setName('ping')
|
2023-08-21 11:23:36 -04:00
|
|
|
.setDescription('Replies with Pong!'),
|
|
|
|
async execute(interaction) {
|
2023-08-22 16:01:41 -04:00
|
|
|
interaction.reply('🏓').then (async (msg) => {
|
|
|
|
msg.edit(`🏓Latency is \`${Date.now() - msg.createdTimestamp}ms\``);
|
|
|
|
});
|
2023-08-21 11:23:36 -04:00
|
|
|
},
|
|
|
|
};
|