Skip to content

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.

optional baseUrl?: 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.


optional defaultChannel?: 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.


optional guildId?: string

Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:259

Discord server (guild) id that setup notifications provisions. Not a secret.


optional layout?: NotificationsLayout

Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:261

The server layout setup notifications applies.


optional unsafeBotBaseUrl?: 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.


optional webhooks?: 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.