kameloso.plugins.twitch.common

Common Twitch bits and bobs.

Members

Classes

EmptyDataJSONException
class EmptyDataJSONException

Exception, to be thrown when an API query to the Twitch servers failed, due to having received empty JSON data.

EmptyResponseException
class EmptyResponseException

Exception, to be thrown when an API query to the Twitch servers failed, with only an empty response received.

ErrorJSONException
class ErrorJSONException

A normal Exception but where its type conveys the specific context of a JSONValue having an "error" field.

InvalidCredentialsException
class InvalidCredentialsException

Exception, to be thrown when credentials or grants are invalid.

MissingBroadcasterTokenException
class MissingBroadcasterTokenException

Exception, to be thrown when an API query to the Twitch servers failed, due to missing broadcaster-level token.

TwitchJSONException
class TwitchJSONException

Abstract class for Twitch JSON exceptions, to deduplicate catching.

TwitchQueryException
class TwitchQueryException

Exception, to be thrown when an API query to the Twitch servers failed, for whatever reason.

UnexpectedJSONException
class UnexpectedJSONException

A normal Exception but where its type conveys the specific context of a JSONValue having unexpected contents.

Functions

generateExpiryReminders
void generateExpiryReminders(TwitchPlugin plugin, SysTime expiresWhen, string what, void delegate() onExpiryDg)

Generates and delays Twitch authorisation token expiry reminders.

isValidTwitchUsername
auto isValidTwitchUsername(string username)

Checks if a string is a valid Twitch username.

See Also

Meta