generated from nhcarrigan/template
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 1m17s
18 lines
871 B
JavaScript
18 lines
871 B
JavaScript
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()
|
|
])) |