PermissionsUtils class

Util function for manipulating permissions

Constructors

PermissionsUtils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

apply(int permissions, int allow, int deny) int
Apply deny and allow to permissions.
canInteract({CacheMember issueMember, Role issueRole, CacheMember targetMember, Role targetRole}) bool
Allows to check if issueMember or issueRole can interact with targetMember or targetRole.
getOverrides(CacheMember member, CacheGuildChannel channel) List<int>
Returns List of channel permissions overrides for given member.
isApplied(int permissions, int permission) bool
Returns true if permission is applied to permissions.