Skip to main content
PUT
/
guilds
/
{guild_id}
/
bans
/
{user_id}
Ban guild member
curl --request PUT \
  --url https://api.fluxer.app/v1/guilds/{guild_id}/bans/{user_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delete_message_days": 3,
  "reason": "<string>",
  "ban_duration_seconds": 123
}
'
{
  "code": "ACCESS_DENIED",
  "message": "<string>",
  "errors": [
    {
      "path": "<string>",
      "message": "<string>",
      "code": "<string>"
    }
  ]
}

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

user_id
string<snowflake>
required

The ID of the user

Body

application/json
delete_message_days
integer<int32>

Number of days of messages to delete from the banned user (0-7)

Required range: 0 <= x <= 7
reason
string | null

The reason for the ban (max 512 characters)

ban_duration_seconds
integer<int53>

Duration of the ban in seconds (0 for permanent, or a valid temporary duration)

Response

No Content