sendWhisper

Sends a whisper to a user.

The bot user sending the whisper must have a verified phone number or the action will fail with a 401 response code.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
sendWhisper
(,
const uint userID
,
const string unescapedMessage
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

userID uint

Twitch ID of user to send whisper to.

unescapedMessage string

Message to send.

caller string

Name of the calling function.

Return Value

Type: auto

The HTTP response code received.

See Also