discord
ImportantAs of Flowpipe 1.0.0,
credential
has been renamed toconnection
. Thediscord
credential resource is deprecated and will be removed in a future version of Flowpipe. Use the discord connection instead.
The discord
credential can be used to access Discord resources.
credential "discord" "my_discord" { token = "00B630jSCGU4Fake5Yh4KQMFakezwE2OgVcS7N999b"}
Arguments
Name | Type | Required? | Description |
---|---|---|---|
token | String | Optional | API token |
All arguments are optional, and a discord
credential with no arguments will behave the same as the default credential.
Attributes (Read-Only)
Attribute | Type | Description |
---|---|---|
env | Map | A map of the resolved credential-related environment variables (DISCORD_TOKEN ) |
Default Credential
The discord
credential type includes an implicit, default credential (credential.discord.default
) that will be configured to set the token
to the DISCORD_TOKEN
environment variable.
credential "discord" "default" { token = env("DISCORD_TOKEN")}