PermissionsUtils class Null safety
Util function for manipulating permissions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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
andallow
topermissions
. -
canInteract(
{IMember? issueMember, IRole? issueRole, IMember? targetMember, IRole? targetRole}) → bool -
Allows to check if
issueMember
orissueRole
can interact withtargetMember
ortargetRole
. -
getMemberHighestRole(
IMember member) → IRole -
getOverrides(
IMember member, IGuildChannel channel) → List< int> -
Returns List of
channel
permissions overrides for givenmember
. -
isApplied(
int permissions, int permission) → bool -
Returns true if
permission
is applied topermissions
.