timeoutUser

Times out a user in a channel.

version(TwitchSupport && WithTwitchPlugin)
package
timeoutUser
(,
const string channelName
,
const uint userID
,
const uint durationSeconds
,
const string reason = string.init
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelName string

Name of channel to timeout a user in.

userID uint

Twitch ID of user to timeout.

durationSeconds uint

Duration of timeout in seconds.

reason string

Timeout reason.

caller string

Name of the calling function.

Return Value

Type: auto

A Voldemort struct with information about the timeout action.

Throws

UnexpectedJSONException on unexpected JSON.

See Also