API reference
Permissions
Discord’s permission bits, as decimal strings on the wire.
A permission set is a number with one bit per permission, sent as a decimal string (it is bigger than a JavaScript number can hold exactly). A server’s roles and a channel’s overwrites combine the way Discord’s do.
CREATE_INSTANT_INVITEbit 1- Create invites. Invite new people
KICK_MEMBERSbit 2- Kick members. Remove someone (they can rejoin with an invite)
BAN_MEMBERSbit 4- Ban members. Remove someone for good
ADMINISTRATORbit 8- Administrator. Every permission, and channel overrides do not apply
MANAGE_CHANNELSbit 16- Manage channels. Create, edit, reorder and delete channels and categories
MANAGE_GUILDbit 32- Manage server. Change the name and icon, manage invites and bots
ADD_REACTIONSbit 64- Add reactions. React to messages with emoji
VIEW_AUDIT_LOGbit 128- See the audit log. See what moderators and admins changed
PRIORITY_SPEAKERbit 256tether does not enforce this one yet.
STREAMbit 512- Video and screen share. Share a camera or a screen
VIEW_CHANNELbit 1024- View channels. See the text and voice channels
SEND_MESSAGESbit 2048- Send messages. Write in text channels
MANAGE_MESSAGESbit 8192- Delete others’ messages. Remove any message or reaction in channels they can see
EMBED_LINKSbit 16384- Embed links. Links they post show a preview
ATTACH_FILESbit 32768- Attach files. Upload pictures and files
READ_MESSAGE_HISTORYbit 65536- Read message history. See messages from before they joined the channel
MENTION_EVERYONEbit 131072- Mention @everyone and @here. Ping everyone at once
CONNECTbit 1048576- Connect. Join voice channels
SPEAKbit 2097152- Speak. Talk in voice channels
MUTE_MEMBERSbit 4194304- Mute members. Mute other people in voice
DEAFEN_MEMBERSbit 8388608- Deafen members. Deafen other people in voice
MOVE_MEMBERSbit 16777216- Move members. Move people between voice channels, and stop a music bot
USE_VADbit 33554432tether does not enforce this one yet.
CHANGE_NICKNAMEbit 67108864- Change nickname. Change their own nickname
MANAGE_NICKNAMESbit 134217728- Manage nicknames. Change other people’s nicknames
MANAGE_ROLESbit 268435456- Manage roles. Create and edit roles below their own, and give them to people
MANAGE_GUILD_EXPRESSIONSbit 1073741824- Manage emoji. Edit or delete anyone’s custom emoji and stickers
USE_APPLICATION_COMMANDSbit 2147483648tether does not enforce this one yet.
MANAGE_EVENTSbit 8589934592- Manage events. Edit, start, cancel or delete anyone’s events
MANAGE_THREADSbit 17179869184- Manage threads. Rename, archive, lock and delete any thread, and remove people from it
CREATE_PUBLIC_THREADSbit 34359738368- Start threads. Start a thread from a message or in a text channel
SEND_MESSAGES_IN_THREADSbit 274877906944- Write in threads. Reply in the threads of a text channel
MODERATE_MEMBERSbit 1099511627776- Time out members. Stop someone from sending, reacting and talking for a while
CREATE_GUILD_EXPRESSIONSbit 8796093022208- Create emoji. Upload custom emoji and stickers, and edit or delete their own
CREATE_EVENTSbit 17592186044416- Create events. Plan events, and edit, start or cancel their own
SEND_POLLSbit 562949953421312- Create polls. Start a poll in a text channel
PIN_MESSAGESbit 2251799813685248- Pin messages. Pin and unpin in channels they can see