Skip to main content
GET
/
guilds
/
{guild_id}
/
bans
List guild bans
curl --request GET \
  --url https://api.fluxer.app/v1/guilds/{guild_id}/bans \
  --header 'Authorization: <api-key>'
[
  {
    "user": {
      "id": "<string>",
      "username": "<string>",
      "discriminator": "<string>",
      "global_name": "<string>",
      "avatar": "<string>",
      "avatar_color": 1073741823,
      "flags": 1073741823,
      "bot": true,
      "system": true
    },
    "moderator_id": "<string>",
    "banned_at": "2023-11-07T05:31:56Z",
    "reason": "<string>",
    "expires_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

guild_id
string<snowflake>
required

The ID of the guild

Response

Success

user
object
required
moderator_id
string
required

The ID of the moderator who issued the ban

banned_at
string<date-time>
required

ISO8601 timestamp of when the ban was issued

reason
string | null

The reason for the ban

expires_at
string<date-time> | null

ISO8601 timestamp of when the ban expires (null if permanent)