Piecewise

Build chat bots with blocks

(action) permission (permission) to/from role (role)

In Discord → Roles

Jump to block

Give a permission to a role.

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

Parameters

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

Output

void - This is a statement with no outputs