[deprecated] user (user) can (permission) in (target)
In the toolbox
This block is deprecated and will be removed in Piecewise 22.05.0. Use the ‘user or role (userOrRole) can (permission) in (target)’ block in the toolbox instead.
Determine if a user has a particular permission in a channel or server.
Requires the following blocks to be present in the project: discord login
Parameters
Parameter name | Parameter type | Required? | Description |
---|---|---|---|
user | user | ✓ | The user to check permissions for. |
permission | any | ✓ | The permission to check. |
target | channel OR guild | ✓ | The channel or server to check permissions in. |
Output
Boolean - Whether the specified user has the indicated permission in the provided server or channel. Always returns FALSE if the provided channel is a DM.