generated from nhcarrigan/template
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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()]));
|
||||
Reference in New Issue
Block a user