PermissionsUtils class Null safety

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
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({Member? issueMember, Role? issueRole, Member? targetMember, Role? targetRole}) bool
Allows to check if issueMember or issueRole can interact with targetMember or targetRole.
getOverrides(Member member, GuildChannel 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.