Discord

List Discord guild roles

Changed on

Returns all roles in a Discord guild. Useful for building role-mention pickers, role-permission UIs, or finding the role ID before calling the role-assign endpoint.

Roles are returned unordered. Sort client-side by position if you need Discord's UI ordering.

Caller must pass accountId of a Discord SocialAccount bound to this guild (route verifies team access + guild match).

get/v1/discord/guilds/{guildId}/roles

Request

Path parameters

guildIdstring required

Discord guild snowflake ID

Query parameters

accountIdstring required

SocialAccount _id of the Discord account bound to this guild

Response

List of guild roles.

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • warning

      added the new account enum value to the / response property for the response status