@@ -851,7 +851,7 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
851
851
/// use twitch_api::{types, helix};
852
852
/// use futures::TryStreamExt;
853
853
///
854
- /// let games : Vec<helix::chat::get_emote_sets::Emote> = client.get_emote_sets(&["0"][..].into(), &token).try_collect().await?;
854
+ /// let emotes : Vec<helix::chat::get_emote_sets::Emote> = client.get_emote_sets(&["0"][..].into(), &token).try_collect().await?;
855
855
/// # Ok(()) }
856
856
/// ```
857
857
pub fn get_emote_sets < T > (
@@ -970,7 +970,7 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
970
970
Ok ( self . req_delete ( req, token) . await ?. data )
971
971
}
972
972
973
- /// Get a users chat color
973
+ /// Update a user's chat color
974
974
pub async fn update_user_chat_color < ' b , T > (
975
975
& ' client self ,
976
976
user_id : impl types:: IntoCow < ' b , types:: UserIdRef > + Send + ' b ,
@@ -988,7 +988,9 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
988
988
Ok ( self . req_put ( req, helix:: EmptyBody , token) . await ?. data )
989
989
}
990
990
991
- /// Get a users chat color
991
+ /// Get a user's chat color
992
+ ///
993
+ /// [`None`](Option::None) is returned if the user never set their color in the settings.
992
994
pub async fn get_user_chat_color < T > (
993
995
& ' client self ,
994
996
user_id : impl Into < & types:: UserIdRef > + Send ,
@@ -999,14 +1001,16 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
999
1001
{
1000
1002
Ok ( self
1001
1003
. req_get (
1002
- helix:: chat:: GetUserChatColorRequest :: user_ids ( & [ user_id. into ( ) ] [ .. ] ) ,
1004
+ helix:: chat:: GetUserChatColorRequest :: user_ids ( & user_id. into ( ) ) ,
1003
1005
token,
1004
1006
)
1005
1007
. await ?
1006
1008
. first ( ) )
1007
1009
}
1008
1010
1009
- /// Get multiple users chat colors
1011
+ /// Get multiple users' chat colors
1012
+ ///
1013
+ /// Users that never set their color in the settings are not returned.
1010
1014
///
1011
1015
/// # Examples
1012
1016
///
@@ -1019,7 +1023,7 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
1019
1023
/// use twitch_api::{types, helix};
1020
1024
/// use futures::TryStreamExt;
1021
1025
///
1022
- /// let games : Vec<helix::chat::UserChatColor> = client.get_users_chat_colors(&["1234"][..].into(), &token).try_collect().await?;
1026
+ /// let colors : Vec<helix::chat::UserChatColor> = client.get_users_chat_colors(&["1234"][..].into(), &token).try_collect().await?;
1023
1027
/// # Ok(()) }
1024
1028
/// ```
1025
1029
pub fn get_users_chat_colors < T > (
@@ -1217,9 +1221,6 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
1217
1221
where
1218
1222
T : TwitchToken + Send + Sync + ?Sized ,
1219
1223
{
1220
- if ids. len ( ) > 50 {
1221
- return Err ( ClientRequestError :: Custom ( "too many IDs, max 50" . into ( ) ) ) ;
1222
- }
1223
1224
Ok ( self
1224
1225
. req_get (
1225
1226
helix:: points:: GetCustomRewardRequest :: broadcaster_id ( broadcaster_id)
@@ -1276,8 +1277,9 @@ impl<'client, C: crate::HttpClient + Sync + 'client> HelixClient<'client, C> {
1276
1277
///
1277
1278
/// # Notes
1278
1279
///
1279
- /// The return item is a struct [`EventSubSubscriptions`](helix::eventsub::EventSubSubscriptions) which contains the subscriptions.
1280
- /// See the example for getting only the subscriptions
1280
+ /// The return item is a struct [`EventSubSubscriptions`](helix::eventsub::EventSubSubscriptions)
1281
+ /// which contains a field with all the subscriptions.
1282
+ /// See the example for collecting all _specific_ subscriptions
1281
1283
///
1282
1284
/// # Examples
1283
1285
///
0 commit comments