Permission enum
Bitwise Permission Flags
https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
Constructors
- Permission()
-
const
Values
- createInstantInvite → const Permission
-
0x0000000001 (1 << 0)
Allows creation of instant invites
Channel types: T, V, S
- kickMembers → const Permission
-
0x0000000002 (1 << 1)
Allows kicking members
- banMembers → const Permission
-
0x0000000004 (1 << 2)
Allows banning members
- administrator → const Permission
-
0x0000000008 (1 << 3)
Allows all permissions and bypasses channel permission overwrites
- manageChannels → const Permission
-
0x0000000010 (1 << 4)
Allows management and editing of channels
Channel types: T, V, S
- manageGuild → const Permission
-
0x0000000020 (1 << 5)
Allows management and editing of the guild
- addReactions → const Permission
-
0x0000000040 (1 << 6)
Allows for the addition of reactions to messages
Channel types: T
- viewAuditLog → const Permission
-
0x0000000080 (1 << 7)
Allows for viewing of audit logs
- prioritySpeaker → const Permission
-
0x0000000100 (1 << 8)
Allows for using priority speaker in a voice channel
Channel types: V
- stream → const Permission
-
0x0000000200 (1 << 9)
Allows the user to go live
Channel types: V
- viewChannel → const Permission
-
0x0000000400 (1 << 10)
Allows guild members to view a channel, which includes reading messages in text channels
Channel types: T, V, S
- sendMessages → const Permission
-
0x0000000800 (1 << 11)
Allows for sending messages in a channel (does not allow sending messages in threads)
Channel types: T
- sendTtsMessages → const Permission
-
0x0000001000 (1 << 12)
Allows for sending of /tts messages
Channel types: T
- manageMessages → const Permission
-
0x0000002000 (1 << 13)
Allows for deletion of other users messages
Channel types: T
- embedLinks → const Permission
-
0x0000004000 (1 << 14)
Links sent by users with this permission will be auto-embedded
Channel types: T
- attachFiles → const Permission
-
0x0000008000 (1 << 15)
Allows for uploading images and files
Channel types: T
- readMessageHistory → const Permission
-
0x0000010000 (1 << 16)
Allows for reading of message history
Channel types: T
- mentionEveryone → const Permission
-
0x0000020000 (1 << 17)
Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel
Channel types: T
- useExternalEmojis → const Permission
-
0x0000040000 (1 << 18)
Allows the usage of custom emojis from other servers
Channel types: T
- viewGuildInsights → const Permission
-
0x0000080000 (1 << 19)
Allows for viewing guild insights
- connect → const Permission
-
0x0000100000 (1 << 20)
Allows for joining of a voice channel
Channel types: V, S
- speak → const Permission
-
0x0000200000 (1 << 21)
Allows for speaking in a voice channel
Channel types: V
- muteMembers → const Permission
-
0x0000400000 (1 << 22)
Allows for muting members in a voice channel
Channel types: V, S
- deafenMembers → const Permission
-
0x0000800000 (1 << 23)
Allows for deafening of members in a voice channel
Channel types: V, S
- moveMembers → const Permission
-
0x0001000000 (1 << 24)
Allows for moving of members between voice channels
Channel types: V, S
- useVad → const Permission
-
0x0002000000 (1 << 25)
Allows for using voice-activity-detection in a voice channel
Channel types: V
- changeNickname → const Permission
-
0x0004000000 (1 << 26)
Allows for modification of own nickname
- manageNicknames → const Permission
-
0x0008000000 (1 << 27)
Allows for modification of other users nicknames
- manageRoles → const Permission
-
0x0010000000 (1 << 28)
Allows management and editing of roles
Channel types: T, V, S
- manageWebhooks → const Permission
-
0x0020000000 (1 << 29)
Allows management and editing of webhooks
Channel types: T
- manageEmojisAndStickers → const Permission
-
0x0040000000 (1 << 30)
Allows management and editing of emojis and stickers
- useApplicationCommands → const Permission
-
0x0080000000 (1 << 31)
Allows members to use application commands, including slash commands and context menu commands.
Channel types: T
- requestToSpeak → const Permission
-
0x0100000000 (1 << 32)
Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.)
Channel types: S
- manageEvents → const Permission
-
0x0200000000 (1 << 33)
Allows for creating, editing, and deleting scheduled events
Channel types: V, S
- manageThreads → const Permission
-
0x0400000000 (1 << 34)
Allows for deleting and archiving threads, and viewing all private threads
Channel types: T
- createPublicThreads → const Permission
-
0x0800000000 (1 << 35)
Allows for creating threads
Channel types: T
- createPrivateThreads → const Permission
-
0x1000000000 (1 << 36)
Allows for creating private threads
Channel types: T
- useExternalStickers → const Permission
-
0x2000000000 (1 << 37)
Allows the usage of custom stickers from other servers
Channel types: T
- sendMessagesInThreads → const Permission
-
0x4000000000 (1 << 38)
Allows for sending messages in threads
Channel types: T
- startEmbeddedActivities → const Permission
-
0x8000000000 (1 << 39)
Allows for launching activities (applications with the EMBEDDED flag) in a voice channel
Channel types: V
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
Permission> - A constant List of the values in this enum, in order of their declaration.