PermissionsUtils class

Util function for manipulating permissions

Constructors

PermissionsUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.