PermissionsUtils class
Util function for manipulating permissions
Constructors
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
andallow
topermissions
. -
canInteract(
{Member? issueMember, Role? issueRole, Member? targetMember, Role? targetRole}) → bool -
Allows to check if
issueMember
orissueRole
can interact withtargetMember
ortargetRole
. -
getOverrides(
Member member, GuildChannel channel) → List< int> -
Returns List of
channel
permissions overrides for givenmember
. -
isApplied(
int permissions, int permission) → bool -
Returns true if
permission
is applied topermissions
.