Ban guild member. Requires ban_members permission. Prevents user from joining; optionally deletes recent messages and sets ban expiry duration.
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>"
}
]
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the guild
^(0|[1-9][0-9]*)$The ID of the user
^(0|[1-9][0-9]*)$Number of days of messages to delete from the banned user (0-7)
0 <= x <= 7The reason for the ban (max 512 characters)
Duration of the ban in seconds (0 for permanent, or a valid temporary duration)
No Content
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>"
}
]
}