Check Permission
On this page
Check if a permission is present in a bitfield.
This block performs a bitwise operation to check if the selected Permission Name is contained within Permission Integer. You can use this block with any permission integer generated by the Discord API (role, user, etc).
Learn more about Discord permissions at https://discord.com/developers/docs/topics/permissions
Inputs
Permission Integer
This expects a permission bitfield as an integer. This represents the permissions of the role, user, or other entity. This is often times the output from a block like Get Role.
Example: 138512699392
Permission Name
Select a dropdown option for a permission name. This represents the permission you are looking for within the entity.
Example: Administrator
Outputs
Has Permission
Whether or not the Permission Name was found in Permission Integer.
Example: true
or false