discord_leave_guild
Remove the authenticated bot from a Discord guild by server ID, immediately ending its membership and requiring a new invite to rejoin.
Instructions
Remove the authenticated bot from a guild by server ID. The bot ceases to be a member immediately and requires a new invite URL with bot scopes to rejoin. Use this when the bot is instructed to depart a server; to kick another member use discord_delete_guild_member (members toolset). Returns deleted: true and the guild ID. No special bot permissions. Destructive: the user is asked to approve the exact change before it runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | ID of the guild to leave |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | ||
| guild_id | Yes | Discord snowflake ID as a numeric string |