TwitchLib 3.5.3
Loading...
Searching...
No Matches
TwitchLib.Api.Helix.Whispers Class Reference

Whispers related APIs More...

Inheritance diagram for TwitchLib.Api.Helix.Whispers:
TwitchLib.Api.Core.ApiBase

Public Member Functions

 Whispers (IApiSettings settings, IRateLimiter rateLimiter, IHttpCallHandler http)
 
Task SendWhisperAsync (string fromUserId, string toUserId, string message, bool newRecipient, string accessToken=null)
 Sends a whisper message to the specified user. More...
 
- Public Member Functions inherited from TwitchLib.Api.Core.ApiBase
 ApiBase (IApiSettings settings, IRateLimiter rateLimiter, IHttpCallHandler http)
 
async ValueTask< string > GetAccessTokenAsync (string accessToken=null)
 

Additional Inherited Members

- Protected Member Functions inherited from TwitchLib.Api.Core.ApiBase
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)
 
- Protected Attributes inherited from TwitchLib.Api.Core.ApiBase
readonly IApiSettings Settings
 

Detailed Description

Whispers related APIs

Constructor & Destructor Documentation

◆ Whispers()

TwitchLib.Api.Helix.Whispers.Whispers ( IApiSettings  settings,
IRateLimiter  rateLimiter,
IHttpCallHandler  http 
)

Member Function Documentation

◆ SendWhisperAsync()

Task TwitchLib.Api.Helix.Whispers.SendWhisperAsync ( string  fromUserId,
string  toUserId,
string  message,
bool  newRecipient,
string  accessToken = null 
)

Sends a whisper message to the specified user.

The ID in the fromUserId parameter must match the user ID in the access token.

Requires an user access token that includes the user:manage:whispers scope.

Parameters
fromUserIdThe ID of the user sending the whisper. This user must have a verified phone number.
toUserIdThe ID of the user to receive the whisper.
messageThe whisper message to send. 500 characters for new recipient, otherwise 10,000 characters
newRecipientIf this is a new recipient to adjust max characters allowed in the message.
accessTokenoptional access token to override the use of the stored one in the TwitchAPI instance

The documentation for this class was generated from the following file: