PermissionOverrideBuilder class

Builder for manipulating PermissionsOverrides. Created from existing override or manually by passing type and id of enttiy.

Inheritance

Constructors

PermissionOverrideBuilder(String type, Snowflake id)
Create empty permission builder
PermissionOverrideBuilder.from(String type, Snowflake id, Permissions permissions)
Create builder manually from known data. Id is id of entity. type can be either role or member.
PermissionOverrideBuilder.of(SnowflakeEntity entity)
Create PermissionsOverrides for given entity. Entity have to be either IRole or IMember

Properties

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

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