Permissions class

Permissions for a role or channel override.

Implemented types

Constructors

Permissions.all()
Permissions with max value
Permissions.empty()
Permissions with value of 0
Permissions.fromInt(int permissions)
Makes a Permissions object from a raw permission code.
Permissions.fromOverwrite(int permissions, int allow, int deny)
Makes a Permissions object from overwrite object

Properties

addReactions bool
Allows to add reactions
read / write, final, late
administrator bool
True if user is administrator
read / write, final, late
attachFiles bool
True if user can attach files in messages
read / write, final, late
banMembers bool
True if user can ban members
read / write, final, late
changeNickname bool
True if user can change nick
read / write, final, late
connect bool
True if user can connect to voice channel
read / write, final, late
createInstantInvite bool
True if user can create InstantInvite
read / write, final, late
deafenMembers bool
True if user can deafen members
read / write, final, late
True if user can send links in messages
read / write, final, late
hashCode int
The hash code for this object. [...]
read-only, override
kickMembers bool
True if user can kick members
read / write, final, late
manageChannels bool
True if user can manager channels
read / write, final, late
manageEmojis bool
Allows management and editing of emojis
read / write, final, late
manageGuild bool
True if user can manager guilds
read / write, final, late
manageMessages bool
True if user can manage messages
read / write, final, late
manageNicknames bool
True if user can manager others nicknames
read / write, final, late
manageRoles bool
True if user can manage server's roles
read / write, final, late
manageWebhooks bool
True if user can manage webhooks
read / write, final, late
mentionEveryone bool
True if user can mention everyone
read / write, final, late
moveMembers bool
True if user can move members
read / write, final, late
muteMembers bool
True if user can mute members
read / write, final, late
prioritySpeaker bool
Allows for using priority speaker in a voice channel
read / write, final, late
raw int
The raw permission code.
read / write, final, late
readMessageHistory bool
True if user can read messages history
read / write, final, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sendMessages bool
True if user can send messages
read / write, final, late
sendTtsMessages bool
True if user can send TTF messages
read / write, final, late
speak bool
True if user can speak
read / write, final, late
stream bool
Allows the user to go live
read / write, final, late
useExternalEmojis bool
True if user can use external emojis
read / write, final, late
useVad bool
Allows for using voice-activity-detection in a voice channel
read / write, final, late
viewAuditLog bool
Allow to view audit logs
read / write, final, late
viewChannel bool
Allow viewing channels (OLD READ_MESSAGES)
read / write, final, late
viewGuildInsights bool
Allows for viewing guild insights
read / write, final, late

Methods

hasPermission(int permission) bool
Returns true if this permissions has permission
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toBuilder() PermissionsBuilder
Returns instance of Builder with current data
override
toString() String
Returns a string representation of this object.
inherited

Operators

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