Permanently bans a user from a guild. Prevents user from joining. Logged to audit log. Requires GUILD_BAN_MEMBER permission.
curl --request POST \
--url https://api.fluxer.app/v1/admin/guilds/ban-member \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"guild_id": "<string>",
"user_id": "<string>",
"delete_message_days": 3,
"reason": "<string>",
"ban_duration_seconds": 123
}
'{
"code": "ACCESS_DENIED",
"message": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Admin API key: Authorization: Admin <token>. Only valid for /admin/* endpoints.
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 POST \
--url https://api.fluxer.app/v1/admin/guilds/ban-member \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"guild_id": "<string>",
"user_id": "<string>",
"delete_message_days": 3,
"reason": "<string>",
"ban_duration_seconds": 123
}
'{
"code": "ACCESS_DENIED",
"message": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}