discord

The discord connection can be used to access Discord resources.

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

Arguments

NameTypeRequired?Description
tokenStringOptionalAPI token

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

Attributes (Read-Only)

AttributeTypeDescription
envMapA map of the resolved connection-related environment variables (DISCORD_TOKEN)

Default Connection

The discord connection type includes an implicit, default connection (connection.discord.default) that will be configured to set the token to the DISCORD_TOKEN environment variable.

connection "discord" "default" {
token = env("DISCORD_TOKEN")
}