Skip to content

tokens

const tokens: PluginToken[]

Defined in: plugins/holocron-plugin-discord/src/auth.ts:52

Every token this plugin takes, for holocron doctor secrets --verify. verifyToken checks a webhook URL, so the bot token has its own verify (it asks for the bot’s application) and the OAuth client secret, which cannot be checked without a sign-in, is listed but not handed to it. The bot’s expect is what each layer’s token must carry (membership of the server and the permissions setup needs). The webhook is the last resort for a post that names no channel, alias or defaultChannel, so nothing needs it by default (optional).