Permissions class
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
latefinal
- administrator ↔ bool
-
True if user is administrator
latefinal
- attachFiles ↔ bool
-
True if user can attach files in messages
latefinal
- banMembers ↔ bool
-
True if user can ban members
latefinal
- changeNickname ↔ bool
-
True if user can change nick
latefinal
- connect ↔ bool
-
True if user can connect to voice channel
latefinal
- createInstantInvite ↔ bool
-
True if user can create InstantInvite
latefinal
- createPrivateThreads ↔ bool
-
Allows for creating and participating in private threads
latefinal
- createPublicThreads ↔ bool
-
Allows for creating and participating in threads
latefinal
- deafenMembers ↔ bool
-
True if user can deafen members
latefinal
- embedLinks ↔ bool
-
True if user can send links in messages
latefinal
- hashCode → int
-
The hash code for this object.
no setteroverride
- kickMembers ↔ bool
-
True if user can kick members
latefinal
- manageChannels ↔ bool
-
True if user can manager channels
latefinal
- manageEmojis ↔ bool
-
Allows management and editing of emojis
latefinal
- manageGuild ↔ bool
-
True if user can manager guilds
latefinal
- manageMessages ↔ bool
-
True if user can manage messages
latefinal
- manageNicknames ↔ bool
-
True if user can manager others nicknames
latefinal
- manageRoles ↔ bool
-
True if user can manage server's roles
latefinal
- manageThreads ↔ bool
-
Allows for deleting and archiving threads, and viewing all private threads
latefinal
- manageWebhooks ↔ bool
-
True if user can manage webhooks
latefinal
- mentionEveryone ↔ bool
-
True if user can mention everyone
latefinal
- moveMembers ↔ bool
-
True if user can move members
latefinal
- muteMembers ↔ bool
-
True if user can mute members
latefinal
- prioritySpeaker ↔ bool
-
Allows for using priority speaker in a voice channel
latefinal
- raw ↔ int
-
The raw permission code.
latefinal
- readMessageHistory ↔ bool
-
True if user can read messages history
latefinal
- requestToSpeak ↔ bool
-
Allows for requesting to speak in stage channels
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendMessages ↔ bool
-
True if user can send messages
latefinal
- sendMessagesInThreads ↔ bool
-
True if user can send messages in threads
latefinal
- sendTtsMessages ↔ bool
-
True if user can send TTF messages
latefinal
- speak ↔ bool
-
True if user can speak
latefinal
- startEmbeddedActivities ↔ bool
-
Allows for launching activities in a voice channel
latefinal
- stream ↔ bool
-
Allows the user to go live
latefinal
- useExternalEmojis ↔ bool
-
True if user can use external emojis
latefinal
- useExternalStickers ↔ bool
-
Allows the usage of custom stickers from other servers
latefinal
- useSlashCommands ↔ bool
-
Allows members to use slash commands in text channels
latefinal
- useVad ↔ bool
-
Allows for using voice-activity-detection in a voice channel
latefinal
- viewAuditLog ↔ bool
-
Allow to view audit logs
latefinal
- viewChannel ↔ bool
-
Allow viewing channels (OLD READ_MESSAGES)
latefinal
- viewGuildInsights ↔ bool
-
Allows for viewing guild insights
latefinal
Methods
-
hasPermission(
int permission) → bool -
Returns true if this permissions has
permission
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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