VulCode

Discord permissions calculator

Click permissions and get the bitfield for a role or a bot invite.

Category
Discord
Price
free

The tool starts in your browser.

Everything is calculated in your browser. Nothing you type is sent to our server.

How to use it in three steps

The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.

Discord permissions calculator
What you enter
View channels, send messages, embed links, attach files, read history
  1. Tick the permissions the role or bot needs.

What you get
117760
  1. Read the bitfield number.

The Discord API or a bot invite link
  1. Paste it into the API or a bot invite link.

Five bot permissions in one number

Each permission is one bit and the mask is their sum. Discord takes it as a number in the API and in a bot invite link. The result is computed by the same function the tool at the top of the page uses, every time the page is shown.

You tick

Permissions
View channels, Send messages, Embed links, Attach files, Read message history

The bit of each permission

View channels
1 << 10 = 1024
Send messages
1 << 11 = 2048
Embed links
1 << 14 = 16384
Attach files
1 << 15 = 32768
Read message history
1 << 16 = 65536
What the tool does

Discord numbers permissions from zero. Permission number n is 1 shifted left by n bits.

The sum of the bits

Mask
1024 + 2048 + 16384 + 32768 + 65536 = 117760
What the tool does

Every click turns one bit on or off. The bits do not overlap, so the mask is a plain sum.

Permission mask

  • For the permissions field in the Discord API
  • For a bot invite link, without Administrator
117760

Questions