import { ApplicationIntegrationType, InteractionContextType, SlashCommandBuilder } from "discord.js"; const about = new SlashCommandBuilder() .setName("about") .setDescription("Get information about this application.") .setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]) .setIntegrationTypes([ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall]); const dm = new SlashCommandBuilder() .setName("dm") .setDescription("Trigger a DM response so you can find your DM channel.") .setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]) .setIntegrationTypes([ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall]); console.log(JSON.stringify([ about.toJSON(), dm.toJSON() ]))