Files
hikari/bot/commandJson.js
Naomi Carrigan cd5c3761f4
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 1m17s
feat: build out discord support agent
2025-07-05 23:06:45 -07:00

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()
]))