Available on crate feature
helix only.Expand description
Unpins a pinned chat message from the broadcaster’s chat room.
unpin-chat-message
§Accessing the endpoint
§Request: UnpinChatMessageRequest
To use this endpoint, construct a UnpinChatMessageRequest with the UnpinChatMessageRequest::new() method.
use twitch_api::helix::chat::unpin_chat_message;
let request = unpin_chat_message::UnpinChatMessageRequest::new(
"1234",
"5678",
"abc-def-123",
);§Response: UnpinChatMessageResponse
Send the request to receive the response with HelixClient::req_post().
use twitch_api::helix::{self, chat::unpin_chat_message};
let request = unpin_chat_message::UnpinChatMessageRequest::new("1234", "5678", "abc-def-123");
let response: helix::chat::UnpinChatMessageResponse = 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 UnpinChatMessageRequest::parse_response(None, &request.get_uri(), response)
Structs§
- Unpin
Chat Message Request - Query Parameters for Unpin Chat Message
Enums§
- Unpin
Chat Message Response - Return Values for Unpin Chat Message