Quiero hacer que este comando de barra sea privado. ¿Dónde inserto los defaultPermissions: false ?
const { SlashCommandBuilder } = require('@discordjs/builders'); const { MessageEmbed } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() .setName('ping') .setDescription('Checks that the bot is online.'), async execute(interaction) { const embed = new MessageEmbed() .setColor('#9ea687') .setTitle('Pong!') .setDescription(`Latency is ${Date.now() - interaction.createdTimestamp}ms.`) .setThumbnail('url') .setTimestamp() .setFooter({text: 'text'}); await interaction.reply({ embeds: [embed] }); }, };Puede usar el método .setDefaultPermission() , así:
data: new SlashCommandBuilder() .setName('ping') .setDescription('Checks that the bot is online.') .setDefaultPermission(false)