Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Role → List Roles
AI-generatedSummary
List all roles in a Discord server.
Inputs
- serverId (required) — ID of the Discord server (guild) whose roles will be listed.
Output shape
array
Each item is an object with role ID, name, and hex color code.
Examples
Example 1: User wants to get the list of roles for a server with ID '123456789012345678'.
Set Resource to Role, Operation to List Roles, Server ID to 123456789012345678.