POST
/api/v1/bot/moderation.phpKick, ban, timeout or change nickname
Role hierarchy and live bot permissions are enforced server-side.
Request Body
application/json
{
"server_id": 1001,
"user_id": 6001,
"action": "kick",
"reason": "Kural ihlali",
"minutes": 1,
"nickname": "example"
}Example Request
cURL
curl -X POST 'https://nexuschatly.com/api/v1/bot/moderation.php' \
-H 'Authorization: Bot nx_bot_...' \
-H 'Content-Type: application/json' \
-d '{
"server_id": 1001,
"user_id": 6001,
"action": "kick",
"reason": "Kural ihlali",
"minutes": 1,
"nickname": "example"
}'Responses
200Successful response400Error response401Error response403Error response404Error response429Error response