PermissionOverrideBuilder class Null safety

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

Inheritance

Constructors

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

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
manageThreads bool?
Allows for deleting and archiving threads, and viewing all private threads
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 int
Type of permission override either role or member
final
useExternalEmojis bool?
True if user can use external emojis
read / write, inherited
usePrivateThreads bool?
Allows for creating and participating in private threads
read / write, inherited
usePublicThreads bool?
Allows for creating and participating in threads
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

build() → _PermissionsSet
inherited
calculatePermissionValue() int
Calculates permission int
inherited
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