Build chat bots with blocks

find role in server (guild) with ID (id)

In Discord → Roles

Jump to block

Find a role in a server with a particular ID.

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


Parameter name Parameter type Required? Description
guild guild The server to search for the role in.
id String The ID of the role to search for.


role - The role if found, or null.