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 ulong userID
,
const string message
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

userID ulong

Twitch ID of user to send whisper to.

message string

Message to send.

caller string

Name of the calling function.

Return Value

Type: auto

A Voldemort struct with the HTTP response code.

See Also