Available on crate feature helix only.
Expand description

Returns all moderators in a channel. get-moderators

Accessing the endpoint

Request: GetModeratorsRequest

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

use twitch_api2::helix::moderation::get_moderators;
let request = get_moderators::GetModeratorsRequest::builder()
    .broadcaster_id("1234")
    .build();

Response: Moderator

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

use twitch_api2::helix::{self, moderation::get_moderators};
let request = get_moderators::GetModeratorsRequest::builder()
    .broadcaster_id("1234")
    .build();
let response: Vec<get_moderators::Moderator> = client.req_get(request, &token).await?.data;

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

Structs

Return Values for Get Moderators