List Discord guild roles
Changed onReturns 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).
Request
- Base URLhttps://zernio.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Discord guild snowflake ID
Query parameters
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
- info
- warning
added the new
accountenum value to the/response property for the response status
- warning