|
| Chat (IApiSettings settings, IRateLimiter rateLimiter, IHttpCallHandler http) |
|
Task< GetChannelChatBadgesResponse > | GetChannelChatBadgesAsync (string broadcasterId, string accessToken=null) |
| Gets a list of custom chat badges that can be used in chat for the specified channel. This includes subscriber badges and Bit badges. More...
|
|
Task< GetGlobalChatBadgesResponse > | GetGlobalChatBadgesAsync (string accessToken=null) |
| Gets a list of chat badges that can be used in chat for any channel. More...
|
|
Task< GetChattersResponse > | GetChattersAsync (string broadcasterId, string moderatorId, int first=100, string after=null, string accessToken=null) |
| [BETA] - Gets the list of users that are connected to the specified broadcaster’s chat session. More...
|
|
Task< GetChannelEmotesResponse > | GetChannelEmotesAsync (string broadcasterId, string accessToken=null) |
| Gets all emotes that the specified Twitch channel created. More...
|
|
Task< GetEmoteSetsResponse > | GetEmoteSetsAsync (List< string > emoteSetIds, string accessToken=null) |
| Gets emotes for one or more specified emote sets. More...
|
|
Task< GetGlobalEmotesResponse > | GetGlobalEmotesAsync (string accessToken=null) |
| Gets all global emotes. Global emotes are Twitch-created emoticons that users can use in any Twitch chat. More...
|
|
Task< GetChatSettingsResponse > | GetChatSettingsAsync (string broadcasterId, string moderatorId, string accessToken=null) |
| Gets the broadcaster’s chat settings. More...
|
|
Task< UpdateChatSettingsResponse > | UpdateChatSettingsAsync (string broadcasterId, string moderatorId, ChatSettings settings, string accessToken=null) |
| Updates the broadcaster’s chat settings. More...
|
|
Task | SendChatAnnouncementAsync (string broadcasterId, string moderatorId, string message, AnnouncementColors color=null, string accessToken=null) |
| Sends an announcement to the broadcaster’s chat room. Requires a user access token that includes the moderator:manage:announcements scope. The ID in the moderator_id query parameter must match the user ID in the access token. More...
|
|
Task | UpdateUserChatColorAsync (string userId, UserColors color, string accessToken=null) |
| Updates the color used for the user’s name in chat from a selection of available colors. More...
|
|
Task | UpdateUserChatColorAsync (string userId, string colorHex, string accessToken=null) |
| Updates the color used for the user’s name in chat from a HEX Code. More...
|
|
Task< GetUserChatColorResponse > | GetUserChatColorAsync (List< string > userIds, string accessToken=null) |
| Gets the color used for the user(s)’s name in chat. More...
|
|
| ApiBase (IApiSettings settings, IRateLimiter rateLimiter, IHttpCallHandler http) |
|
async ValueTask< string > | GetAccessTokenAsync (string accessToken=null) |
|
|
async Task< string > | TwitchGetAsync (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchGetGenericAsync< T > (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPatchGenericAsync< T > (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< string > | TwitchPatchAsync (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< KeyValuePair< int, string > > | TwitchDeleteAsync (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPostGenericAsync< T > (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPostGenericModelAsync< T > (string resource, ApiVersion api, RequestModel model, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchDeleteGenericAsync< T > (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPutGenericAsync< T > (string resource, ApiVersion api, string payload=null, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< string > | TwitchPutAsync (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< KeyValuePair< int, string > > | TwitchPostAsync (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
Task | PutBytesAsync (string url, byte[] payload) |
|
async Task< T > | GetGenericAsync< T > (string url, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, ApiVersion api=ApiVersion.Helix, string clientId=null) |
|
readonly IApiSettings | Settings |
|
Task< GetChatSettingsResponse > TwitchLib.Api.Helix.Chat.GetChatSettingsAsync |
( |
string |
broadcasterId, |
|
|
string |
moderatorId, |
|
|
string |
accessToken = null |
|
) |
| |
Gets the broadcaster’s chat settings.
To include the non_moderator_chat_delay or non_moderator_chat_delay_duration settings in the response, you must specify a User access token with scope set to moderator:read:chat_settings.
- Parameters
-
broadcasterId | The ID of the broadcaster whose chat settings you want to get. |
moderatorId | Required only to access the non_moderator_chat_delay or non_moderator_chat_delay_duration settings. |
The ID of a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID associated with the user OAuth token.
If the broadcaster wants to get their own settings (instead of having the moderator do it), set this parameter to the broadcaster’s ID, too.
- Parameters
-
accessToken | optional access token to override the use of the stored one in the TwitchAPI instance |
- Returns
- Exceptions
-
Task< GetChattersResponse > TwitchLib.Api.Helix.Chat.GetChattersAsync |
( |
string |
broadcasterId, |
|
|
string |
moderatorId, |
|
|
int |
first = 100 , |
|
|
string |
after = null , |
|
|
string |
accessToken = null |
|
) |
| |
[BETA] - Gets the list of users that are connected to the specified broadcaster’s chat session.
Note that there is a delay between when users join and leave a chat and when the list is updated accordingly.
Requires a user access token that includes the moderator:read:chatters scope.
- Parameters
-
broadcasterId | The ID of the broadcaster whose list of chatters you want to get. |
moderatorId | The ID of the moderator or the specified broadcaster that’s requesting the list of chatters. |
This ID must match the user ID associated with the user access token.
- Parameters
-
first | The maximum number of items to return per page in the response. |
The minimum page size is 1 item per page and the maximum is 1,000. The default is 100.
- Parameters
-
after | The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value. |
accessToken | optional access token to override the use of the stored one in the TwitchAPI instance |
- Returns
- Exceptions
-