IndiumJS/commands/utilities/ping_cmd.js

13 lines
378 B
JavaScript
Raw Normal View History

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) {
interaction.reply('🏓').then (async (msg) => {
msg.edit(`🏓Latency is \`${Date.now() - msg.createdTimestamp}ms\``);
});
2023-08-21 11:23:36 -04:00
},
};