members_list_bans
List all banned members in a Discord guild with pagination, including usernames and reasons, to audit moderation history or export the ban list.
Instructions
Purpose: List bans in a guild (paginated).
When to use:
Audit moderation history; export ban list.
Pagination: before/after are user-id cursors. limit 1-1000.
Returns: {bans:[{user_id, username, reason}], count}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor: bans with user-id > this | |
| limit | No | Max bans per page (1-1000, default 1000) | |
| before | No | Pagination cursor: bans with user-id < this | |
| guild_id | Yes | Guild to list bans for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||