1 2 3 4 5 6 7 8 9 10
import { SlashCommandBuilder } from 'discord.js'; export default { data: new SlashCommandBuilder() .setName('ping') .setDescription('Pong!'), async execute(interaction, bot) { return await interaction.reply(`Pong! ${Math.round(bot.ws.ping)}ms`); } };