Available on crate feature
helix
only.Expand description
Resolves an unban request by approving or denying it.
§Accessing the endpoint
§Request: ResolveUnbanRequest
To use this endpoint, construct an ResolveUnbanRequest
with the ResolveUnbanRequest::new()
method.
use twitch_api::helix::moderation::resolve_unban_request;
let request = resolve_unban_request::ResolveUnbanRequest::approve(
"123",
"456",
"123-456-789",
)
.resolution_text("something");
§Response: UnbanRequest
Send the request to receive the response with HelixClient::req_patch()
.
use twitch_api::helix::{self, moderation::resolve_unban_request};
let request = resolve_unban_request::ResolveUnbanRequest::approve(
"123",
"456",
"123-456-789",
);
let response: helix::moderation::UnbanRequest = client.req_patch(request, helix::EmptyBody, &token).await?.data;
You can also get the http::Request
with request.create_request(&token, &client_id)
and parse the http::Response
with ResolveUnbanRequest::parse_response(None, &request.get_uri(), response)
Structs§
- Resolve
Unban Request - Query Parameters for Resolve Unban Request
- Unban
Request - Return Values for Get Unban Requests
Enums§
- Unban
Request Status - The status of an unban request