IPermissions class Null safety

Implemented types

Constructors

IPermissions()

Properties

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

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

Operators

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