Get Roles

Get all roles in the specified server.

This block is an iterator. Learn more about iterators.

Inputs

Server ID

Server ID of the server from which you want to retrieve the roles.

Outputs

Iteration Number

The current iteration number in the process of retrieving roles.

Total Iterations

The total number of iterations in the process of retrieving roles.

Role ID

The Role ID of the role you entered.

Role Name

The name of the role you retrieved.

Role Color

The color of the role in hex code.

Role Hoist

Returns true or false if the role is shown on the sidebar.

Role Position

The position of the role. Position 0 is the ’everyone’ role. The higher the number, the higher it is in the role list.

Role Permissions

Gives you an integer with the role permission in return. You can check which integer corresponds to which role in the panel in the Developer Portal under the ‘Bot’ category.

Role Managed

It returns true or false depending on whether the role was created by an integration.

Role Mentionable

It returns true or false depending on whether the role is mentionable.

Role Mention

It returns the mention of the role.