Files
callista/commandData.js
T
naomi c7dd989a9e
Node.js CI / Lint and Test (push) Successful in 34s
feat: initial prototype
2025-10-04 18:11:37 -07:00

24 lines
730 B
JavaScript

import {
ApplicationCommandType,
ApplicationIntegrationType,
ContextMenuCommandBuilder,
InteractionContextType,
InteractionType,
} from "discord.js";
const bookmark = new ContextMenuCommandBuilder()
.setType(ApplicationCommandType.Message)
.setName("Bookmark")
.setContexts(
InteractionContextType.Guild,
InteractionContextType.PrivateChannel
)
.setIntegrationTypes(ApplicationIntegrationType.UserInstall);
const deleteCmd = new ContextMenuCommandBuilder()
.setType(ApplicationCommandType.Message)
.setName("Delete")
.setContexts(InteractionContextType.BotDM)
.setIntegrationTypes(ApplicationIntegrationType.UserInstall);
console.log(JSON.stringify([bookmark.toJSON(), deleteCmd.toJSON()]));