Module twitch_api2::helix::moderation::remove_blocked_term
source · [−]Available on crate feature
helix
only.Expand description
Removes the word or phrase that the broadcaster is blocking users from using in their chat room.
remove-blocked-term
Accessing the endpoint
Request: RemoveBlockedTermRequest
To use this endpoint, construct a RemoveBlockedTermRequest
with the RemoveBlockedTermRequest::builder()
method.
use twitch_api2::helix::moderation::remove_blocked_term;
let request = remove_blocked_term::RemoveBlockedTermRequest::builder()
.broadcaster_id("1234")
.moderator_id("5678")
.id("DEADBEEF")
.build();
Response: RemoveBlockedTerm
Send the request to receive the response with HelixClient::req_delete()
.
use twitch_api2::helix::{self, moderation::remove_blocked_term};
let request = remove_blocked_term::RemoveBlockedTermRequest::builder()
.broadcaster_id("1234")
.moderator_id("5678")
.id("DEADBEEF")
.build();
let response: remove_blocked_term::RemoveBlockedTerm = 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 RemoveBlockedTermRequest::parse_response(None, &request.get_uri(), response)
Structs
Query Parameters for Remove Blocked Terms
Enums
Return Values for Remove Blocked Terms