Installation
Permissions the bot requests and what they're for.
What gets requested
The "Add to Discord" flow requests the bot and applications.commands scopes, plus a permission set covering moderation, channel/role management, and message handling — everything the built-in modules need. You can review and adjust the bot's role permissions afterward in Discord's own Server Settings → Roles.
Role position matters
Discord only lets a bot manage roles and members below its own highest role. If a command replies that it "can't manage" a role or member, move the bot's role higher in Server Settings → Roles.