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 selectedText Channel Permissions
0/16 selectedVoice Channel Permissions
0/9 selectedWhat 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
12¹Kick Members
22²Ban Members
42³Administrator
82⁴Manage Channels
162⁵Manage Guild
322⁶Add Reactions
642¹⁰View Channels
10242¹¹Send Messages
20482¹⁶Read Message History
65536To 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.