Discord Permission Calculator

Select Discord permissions visually and instantly see the resulting permission integer. Use the number in bot invite links, Discord API calls, or role configurations.

Permission Integer 0 permissions selected

0

0x00

Quick Presets

General Server Permissions

0/15 selected

Text Channel Permissions

0/16 selected

Voice Channel Permissions

0/9 selected

What is a Discord Permission Integer?

Discord permissions are stored as a 64-bit integer where each bit represents a specific permission. When you combine multiple permissions, their individual bit values are combined using a bitwise OR operation, producing a single number that encodes all selected permissions. This number — the permission integer — is used in bot invite links (?permissions=), the Discord API, and Discord bot libraries like discord.js and discord.py.

How Discord Permission Bits Work

Each Discord permission corresponds to a specific power of 2. For example:

2⁰

Create Invite

1

Kick Members

2

Ban Members

4

Administrator

8
2⁴

Manage Channels

16
2⁵

Manage Guild

32
2⁶

Add Reactions

64
2¹⁰

View Channels

1024
2¹¹

Send Messages

2048
2¹⁶

Read Message History

65536

To grant both Send Messages (2048) and Read Message History (65536), you add them together: 2048 + 65536 = 67584. Our calculator does this automatically for all selected permissions.

Using Permission Integers in Discord Bot Code

You can check permissions in your Discord bot code using the permission integer:

JavaScript (discord.js)

const { PermissionsBitField } = require('discord.js'); // Check if member has Send Messages if (member.permissions.has(PermissionsBitField.Flags.SendMessages)) { // member can send messages } // Create a permission set from an integer const perms = new PermissionsBitField(BigInt(67584));

Python (discord.py)

import discord # Check if member has Send Messages if ctx.channel.permissions_for(ctx.author).send_messages: pass # member can send messages # Create permissions from integer perms = discord.Permissions(67584)

Should I Give My Bot Administrator Permission?

No, in most cases. The Administrator permission (integer value: 8) grants every permission and bypasses all channel-specific permission overwrites. It is a significant security risk — if your bot's token is compromised, an attacker would have full control over every server the bot is in. Always follow the principle of least privilege: only request the specific permissions your bot actually uses. Use this calculator to identify exactly which permissions you need and generate the correct integer.