List Roles

discord.list_roles
ActionChat & messagingconnection required

Calls the Discord API with the connection's credentials.

List every role defined in a server.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Discord
Secret shape
the bot token (sent as "Authorization: Bot <token>") for every op except discord.execute_webhook, whose secret is the webhook URL
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
guild_id
Id of the Discord server (right-click the server → Copy Server ID).
stringYes———

Output

One shape.

result

FieldTypeExample
items
The objects Discord returned, in its own order.
array—
count
How many objects came back in this page.
number—
{
  "count": 0,
  "items": []
}

Notes

  • Needs a Discord connection whose secret is the bot token.
  • Use this to turn a role name into the role_id the member ops want.

See List Roles run in a workflow.

In a technical demo we add the Discord connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.