DiscordLua
discorddiscord
v1.2.4
Install

PermissionFlagsBits

Enum
On this page

discord.PermissionFlagsBits lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.PermissionFlagsBits.CreateInstantInvite
1 << 0
Create Instant Invite. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.KickMembers
1 << 1
Kick Members. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.BanMembers
1 << 2
Ban Members. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.Administrator
1 << 3
Administrator. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageChannels
1 << 4
Manage Channels. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageGuild
1 << 5
Manage Guild. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.AddReactions
1 << 6
Add Reactions. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ViewAuditLog
1 << 7
View Audit Log. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.PrioritySpeaker
1 << 8
Priority Speaker. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.Stream
1 << 9
Stream. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ViewChannel
1 << 10
View Channel. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.SendMessages
1 << 11
Send Messages. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.SendTTSMessages
1 << 12
Send TTSMessages. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageMessages
1 << 13
Manage Messages. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.AttachFiles
1 << 15
Attach Files. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ReadMessageHistory
1 << 16
Read Message History. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.MentionEveryone
1 << 17
Mention Everyone. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseExternalEmojis
1 << 18
Use External Emojis. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ViewGuildInsights
1 << 19
View Guild Insights. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.Connect
1 << 20
Connect. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.Speak
1 << 21
Speak. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.MuteMembers
1 << 22
Mute Members. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.DeafenMembers
1 << 23
Deafen Members. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.MoveMembers
1 << 24
Move Members. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseVAD
1 << 25
Use VAD. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ChangeNickname
1 << 26
Change Nickname. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageNicknames
1 << 27
Manage Nicknames. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageRoles
1 << 28
Manage Roles. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageWebhooks
1 << 29
Manage Webhooks. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageGuildExpressions
1 << 30
Manage Guild Expressions. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseApplicationCommands
1 << 31
Use Application Commands. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.RequestToSpeak
1 << 32
Request To Speak. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageEvents
1 << 33
Manage Events. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ManageThreads
1 << 34
Manage Threads. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.CreatePublicThreads
1 << 35
Create Public Threads. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.CreatePrivateThreads
1 << 36
Create Private Threads. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseExternalStickers
1 << 37
Use External Stickers. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.SendMessagesInThreads
1 << 38
Send Messages In Threads. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseEmbeddedActivities
1 << 39
Use Embedded Activities. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ModerateMembers
1 << 40
Moderate Members. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.ViewCreatorMonetizationAnalytics
1 << 41
View Creator Monetization Analytics. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseSoundboard
1 << 42
Use Soundboard. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.CreateGuildExpressions
1 << 43
Create Guild Expressions. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.CreateEvents
1 << 44
Create Events. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.UseExternalSounds
1 << 45
Use External Sounds. Use the symbolic name in bot code rather than the raw value.
discord.PermissionFlagsBits.SendVoiceMessages
1 << 46
Send Voice Messages. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.PermissionFlagsBits.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.PermissionFlagsBits.CreateInstantInvite)
Search Ctrl K Navigate Open Esc