warnUser

Warns a user in a channel.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
warnUser
(,
const ulong channelID
,
const ulong userID
,
const string reason
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelID ulong

Twitch ID of channel to warn user in.

userID ulong

Twitch ID of user to warn.

reason string

Reason for warning the user.

caller string

Name of the calling function.

Return Value

Type: auto

A Voldemort struct with the HTTP response code.

See Also