Discord permissions calculator
Tick what a bot or role may do and get the permissions number Discord expects, plus a bot invite link built from it. Paste a number to see which permissions it turns on.
Runs in your browser. No bot token, no Discord login, and the numbers and client ID you enter never leave this page.
Permissions
9 of 52 selectedSensitive marks permissions that let a bot change members, roles or settings. It turns red when ticked. Bot pages on TheDiscordList mark the same ones.
277025770560Result
0x408005cc40Paste a number from an invite link or the Developer Portal and the boxes follow it. Hex starting with 0x works too.
What people see before they add it
The invite asks for 9 permissions, none of them sensitive.
Bot invite link
This is the public application ID, the Application ID on your app's General Information page. The tool never needs the bot token, so do not paste it.
https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=277025770560&scope=bot+applications.commands
Enter a valid client ID and keep a scope ticked to get a link you can copy.
Build a bot invite link
Copy your client ID
Open your application in the Discord Developer Portal and copy the Application ID from General Information. It is public. The bot token on the Bot page is the secret one, and you never need it here.
Tick only what the bot uses
Start from Basic bot and add one permission at a time. Anything marked Sensitive deserves a reason you could explain to a server owner.
Keep the scopes you need
Use
botto add the bot user andapplications.commandsif it has slash commands. The permissions number only applies withbot.Copy the link and add the bot
Open it as someone with Manage Server in the target server. Discord shows what is asked and lets the owner untick any permission before adding.
What the number is made of
Each permission is one bit, and its value is 2 to the power of its bit number. The integer is the values of every ticked permission added together: View Channels (1024), Send Messages (2048) and Embed Links (16384) make 19456. Discord's API sends the number as a string, because the higher bits are close to the 253 limit of exact whole numbers in JavaScript. This tool uses BigInt for the same reason.
Permissions questions
It is one number that holds a whole set of permissions. Discord gives every permission its own bit, and the integer is the chosen bits added together. The same number appears in bot invite links as permissions=, in role objects from the API and in the Developer Portal, so it always means the same set.
More free Discord tools
Show people what your bot asks for
Every bot page on TheDiscordList lists the permissions the invite asks for, with the sensitive ones marked, so people can decide before they add it. Listing your bot is free.