user or role (userOrRole) can (permission) in (target)
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 |
---|---|---|---|
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. |
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.