Available on crate feature helix only.
Expand description

Removes the ban or timeout that was placed on the specified user. unban-user

Accessing the endpoint

Request: UnbanUserRequest

To use this endpoint, construct a UnbanUserRequest with the UnbanUserRequest::builder() method.

use twitch_api2::helix::moderation::unban_user;
let request = unban_user::UnbanUserRequest::builder()
    .broadcaster_id("1234")
    .moderator_id("5678")
    .user_id("1337")
    .build();

Response: UnbanUserResponse

Send the request to receive the response with HelixClient::req_delete().

use twitch_api2::helix::{self, moderation::unban_user};
let request = unban_user::UnbanUserRequest::builder()
    .broadcaster_id("1234")
    .moderator_id("5678")
    .user_id("1337")
    .build();
let response: unban_user::UnbanUserResponse = client.req_delete(request, &token).await?.data;

You can also get the http::Request with request.create_request(&token, &client_id) and parse the http::Response with UnbanUserRequest::parse_response(None, &request.get_uri(), response)

Structs

Query Parameters for Unban User

Enums

Return Values for Unban User