IndiumJS/commands/utilities/ping.js

12 lines
378 B
JavaScript

const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
interaction.reply('🏓').then (async (msg) => {
msg.edit(`🏓Latency is \`${Date.now() - msg.createdTimestamp}ms\``);
});
},
};