UNPKG

makecord-create

Version:

Create advanced Discord Bots with Makecord - Now with TypeScript support

11 lines (9 loc) 318 B
const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() .setName('ping') .setDescription('Shows bot latency'), async execute(interaction) { await interaction.reply('🏓 Pong! Latency: ' + interaction.client.ws.ping + 'ms'); }, };