Permissions class Null safety

Permissions for a role or channel override.

Implemented types

Constructors

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

Properties

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

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
A string representation of this object. [...]
inherited

Operators

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