Piecewise

Build chat bots with blocks

(operation) role (role) to/from user (user)

In Discord → Roles

Jump to block

Give a role to a user.

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

Parameters

Parameter name Parameter type Required? Description
operation any The operation to perform: give or remove.
role role The role to give or remove.
user user The user to give/remove the role to/from.

Output

void - This is a statement with no outputs