discord_get_bot_permissions
Reports a bot's server-wide permissions and role position, and checks whether it holds each permission other tools require. Call it after a 'Missing permissions' error to identify what to grant.
Instructions
Report what this bot can and cannot do in a server: its server-wide permissions, its role position versus the server owner, and whether it holds each permission the other tools in this server depend on. Read-only. Call this when a tool fails with 'Missing permissions' to find out which permission to grant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ||
| guild_id | Yes | ||
| is_owner | Yes | ||
| guild_name | Yes | ||
| permissions | Yes | ||
| highest_role | Yes | ||
| has_all_required | Yes | ||
| bot_role_position | Yes |