DiscordNotificationsOptions
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:247
Options for the Discord notifications capability: webhook aliases, the default channel, and the server it provisions.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:263
A custom API host, for tests. Webhook tokens are only sent to it when unsafeBotBaseUrl is also set.
defaultChannel?
Section titled “defaultChannel?”
optionaldefaultChannel?:string
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:257
Default webhook URL (or alias key) used when send() is called
without an explicit channel, or with an empty string.
guildId?
Section titled “guildId?”
optionalguildId?:string
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:259
Discord server (guild) id that setup notifications provisions. Not a secret.
layout?
Section titled “layout?”
optionallayout?:NotificationsLayout
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:261
The server layout setup notifications applies.
unsafeBotBaseUrl?
Section titled “unsafeBotBaseUrl?”
optionalunsafeBotBaseUrl?:boolean
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:265
Also send the bot token to baseUrl. Off by default so a changed config cannot redirect the bot token to another host; tests that stub the API set it.
webhooks?
Section titled “webhooks?”
optionalwebhooks?:Record<string,string>
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:252
Named aliases mapping a logical channel name to its webhook URL.
Allows send("deploys", msg) instead of passing the full URL.