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.
Parameters
Section titled “Parameters”options?
Section titled “options?”DiscordPluginOptions = {}
Returns
Section titled “Returns”object
capabilities
Section titled “capabilities”capabilities:
object
capabilities.notifications
Section titled “capabilities.notifications”notifications: () =>
Notifications
Returns
Section titled “Returns”Notifications
name:
string="@theholocron/holocron-plugin-discord"
probes
Section titled “probes”probes:
object
probes.connection
Section titled “probes.connection”connection:
Probe
probes.token
Section titled “probes.token”token:
Probe
whoami
Section titled “whoami”whoami:
ProviderAction