Build chat bots with blocks

user or role (userOrRole) can (permission) in (target)

In Discord → Users

Jump to block

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


Parameter name Parameter type Required? Description
userOrRole user OR role The user or role to check permissions for.
permission permission The permission to check.
target channel OR guild The channel or server to check permissions in.


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.