generated from nhcarrigan/template
feat: add /announcement owner-only slash command
Triggers a modal with a content text input and category select menu, calls the announcement API, DMs generated copy as file attachments, and replies ephemerally with the platform recap.
This commit is contained in:
@@ -6,6 +6,12 @@ const about = new SlashCommandBuilder()
|
||||
.setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel])
|
||||
.setIntegrationTypes([ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall]);
|
||||
|
||||
const announcement = new SlashCommandBuilder()
|
||||
.setName("announcement")
|
||||
.setDescription("Create a cross-platform announcement. (Owner only)")
|
||||
.setContexts([InteractionContextType.BotDM, InteractionContextType.PrivateChannel])
|
||||
.setIntegrationTypes([ApplicationIntegrationType.UserInstall]);
|
||||
|
||||
const dm = new SlashCommandBuilder()
|
||||
.setName("dm")
|
||||
.setDescription("Trigger a DM response so you can find your DM channel.")
|
||||
@@ -14,5 +20,6 @@ const dm = new SlashCommandBuilder()
|
||||
|
||||
console.log(JSON.stringify([
|
||||
about.toJSON(),
|
||||
announcement.toJSON(),
|
||||
dm.toJSON()
|
||||
]))
|
||||
Reference in New Issue
Block a user