members_get_ban
Check if a user is banned in a Discord server and retrieve the ban reason by providing user and guild IDs.
Instructions
Purpose: Look up a single ban entry by user ID.
When to use:
Confirm whether a user is currently banned and why.
Returns: {user_id, username, reason}. Discord returns 404 if not banned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User to look up | |
| guild_id | Yes | Guild to inspect |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||