How does the permissions value work?
Each Discord permission is a bit. An invite link's value is the sum of those bits: for example View Channels (1024) plus Send Messages (2048) gives 3072. The calculator does the math for you and handles large values without rounding errors.
The principle of least privilege
Only request the permissions you actually use. A bot with Administrator can do anything on the server, including deleting channels or banning members if its token leaks. Many admins refuse to add a bot that asks for it.
For example, MyServerDiscord only requests read permissions: view channels, read message history, view the audit log and connect to voice channels to track presence.
Decoding an existing value
Paste the value from an invite link (the permissions= parameter) to see exactly what a bot asks for before adding it to your server.