generated from nhcarrigan/template
feat: build out discord support agent
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 1m17s
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 1m17s
This commit is contained in:
18
bot/commandJson.js
Normal file
18
bot/commandJson.js
Normal file
@ -0,0 +1,18 @@
|
||||
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()
|
||||
]))
|
Reference in New Issue
Block a user