Get Highest Role Position of Member

Retrieve the position of the highest role of a member in a server.

The bot is required to have the Server Members intent in order for this block to work. Check your bot’s intents in Inventor bot settings.

Inputs

Server ID

ID of the server to retrieve the member from.

Example: 1234567890123456789

User ID

ID of the member to retrieve.

Example: 1234567890123456789

Outputs

Role Position

The position of the highest role the member has as an interger.

Example: 6

Role ID

The Role ID of the highest role the member has.

Example: 1234567890123456789