PermissionsBuilder class

Builder for permissions.

Implementers

Constructors

PermissionsBuilder()
Empty permission builder
PermissionsBuilder.from(Permissions permissions)
Permission builder from existing Permissions object.

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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