DiscordPluginOptions
Defined in: plugins/holocron-plugin-discord/src/index.ts:19
Options for the Discord plugin: how the webhook URL is resolved plus the notifications settings.
Extends
Section titled “Extends”Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: plugins/holocron-plugin-discord/src/index.ts:21
Override base URL for tests. Default: https://discord.com/api/v10
Overrides
Section titled “Overrides”DiscordNotificationsOptions.baseUrl
cliToken?
Section titled “cliToken?”
optionalcliToken?:string
Defined in: cli/kyber/dist/secrets.d.mts:125
The --token flag.
Inherited from
Section titled “Inherited from”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.
Inherited from
Section titled “Inherited from”DiscordNotificationsOptions.defaultChannel
optionalenv?:ProcessEnv
Defined in: cli/kyber/dist/secrets.d.mts:127
The environment to read. Default process.env; a test passes its own.
Inherited from
Section titled “Inherited from”fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: plugins/holocron-plugin-discord/src/index.ts:23
The fetch to use instead of the global one, for tests.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
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.
Inherited from
Section titled “Inherited from”DiscordNotificationsOptions.guildId
keyring?
Section titled “keyring?”
optionalkeyring?: (account) =>string|null
Defined in: cli/kyber/dist/secrets.d.mts:129
Looks an account up in the keyring. Replaces the configured lookup and the credential store; a test passes its own.
Parameters
Section titled “Parameters”account
Section titled “account”string
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”layout?
Section titled “layout?”
optionallayout?:NotificationsLayout
Defined in: plugins/holocron-plugin-discord/src/capabilities/notifications.ts:261
The server layout setup notifications applies.
Inherited from
Section titled “Inherited from”DiscordNotificationsOptions.layout
optionalorg?:string
Defined in: cli/kyber/dist/secrets.d.mts:131
The active org. It selects the keyring account <service>.<org> first. Default: the variable orgEnvName names.
Inherited from
Section titled “Inherited from”unsafeBotBaseUrl?
Section titled “unsafeBotBaseUrl?”
optionalunsafeBotBaseUrl?:boolean
Defined in: plugins/holocron-plugin-discord/src/index.ts:29
Also send the BOT token to baseUrl. Off by default: baseUrl comes from a
repo’s config, and a changed config must not be able to redirect the bot
token to another host. Tests that stub the API set it.
Overrides
Section titled “Overrides”DiscordNotificationsOptions.unsafeBotBaseUrl
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.