discord

The discord connection can be used to access Discord resources.

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.