discord

The discord credential can be used to access Discord resources.

credential "discord" "my_discord" {
token = "00B630jSCGU4Fake5Yh4KQMFakezwE2OgVcS7N999b"
}

Arguments

NameTypeRequired?Description
tokenStringOptionalAPI token

All arguments are optional, and a discord credential with no arguments will behave the same as the default credential.

Attributes (Read-Only)

AttributeTypeDescription
envMapA 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")
}