BLANCO

Developer · blancodagoat.dev

Guides

DISCORD PERMISSIONS INTEGER

A Discord permissions integer is a bitfield — one number that encodes a set of permissions, where each bit is a single permission. This guide explains what the number means, how the flags combine, and how to build one by hand or with a calculator.

→ OPEN THE PERMISSIONS CALCULATOR

HOW THE BITFIELD WORKS

COMMON PERMISSION VALUES

WORKED EXAMPLE

HOW DISCORD RESOLVES EFFECTIVE PERMISSIONS

FAQ

What is a Discord permissions integer?

It is a bitfield — a single number where each bit represents one permission. Discord returns and accepts it as a string because the value can exceed the range a normal 53-bit number holds. Each permission is a distinct power of two, so combining permissions means OR-ing (adding) their values.

How do I calculate a Discord permission integer?

Take the bit value of each permission and combine them with a bitwise OR. Because every permission is a unique power of two, that is the same as adding them. Send Messages (2048) + Embed Links (16384) + Attach Files (32768) = 51200. The permissions calculator does this for you.

What does the Administrator permission do?

Administrator (value 8) grants every permission and bypasses all channel-level overwrites. Give it only to fully trusted roles.

Why is the value a string, not a number?

The bitfield can exceed 253, the largest integer JavaScript represents exactly, so Discord serializes it as a string. Parse it with BigInt before bitwise math.

Related: gateway intents explained · decode a snowflake ID · all guides