Build chat bots with blocks

roles in server (server)

In Discord → Roles

Jump to block

Get all of the roles in a server.

Requires the following blocks to be present in the project: discord login


Parameter name Parameter type Required? Description
server guild The server to retrieve all of the the roles for.


Array - A list of all of the roles in the specified server.