discord_list_bans
List users banned from a Discord server with their ban reasons, up to 1000 per page. Pass the returned nextCursor as after to retrieve additional pages.
Instructions
List the users banned from the server, with their ban reasons. Returns { bans: [...], nextCursor }. A page holds up to 1000 bans; if nextCursor is non-null, pass it back as after to fetch the next page. Requires the Ban Members or View Audit Log permission. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>"
},
"name": "discord_list_bans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page. | |
| limit | No | Max bans per page (1–1000). Default 1000. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bans | Yes | ||
| nextCursor | Yes |