Ping Command
Example Ping command using our setup command structure.
const { EmbedBuilder, SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
run: async ({ client, interaction }) => {},
};const { EmbedBuilder, SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Returns the bot latency."),
run: async ({ client, interaction }) => {},
};Last updated