Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Guild → Get Bans

AI-generated

Summary

Lists bans for a Discord guild, with optional pagination by user snowflake ID.

Inputs

  • Authentication — Choose a bot token (the default) or an OAuth2 user token.
  • Guild (required) — The Discord guild ID to list bans for.
  • Limit — Maximum number of bans to return; defaults to 50 and accepts values from 1 to 1000.
  • Before — Return bans before this user snowflake ID.
  • After — Return bans after this user snowflake ID.
  • Request Options — Optional request settings, including batching, SSL certificate validation, proxy, and timeout.

Output shape

A list of guild ban records.

The source pack shows no operation-specific response transformation; pagination is controlled with Limit, Before, and After.

Links

Discussion