Skip to content

createPlugin

createPlugin(options?): object

Defined in: plugins/holocron-plugin-discord/src/index.ts:96

Creates the Discord plugin: its notifications capability and its connection and token probes. The probe checks the webhook when there is one, and the bot token when there is not: the webhook is only a last resort for a post that names no channel, so a missing one is not a failed connection when the bot can be reached.

DiscordPluginOptions = {}

object

capabilities: object

notifications: () => Notifications

Notifications

name: string = "@theholocron/holocron-plugin-discord"

probes: object

connection: Probe

token: Probe

whoami: ProviderAction