kameloso.plugins.twitch.common

Helper functions for song request modules.

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

getHTTPClient
auto getHTTPClient()

Returns a static HttpClient for reuse across function calls.

printManualURL
void printManualURL(string url)

Prints a URL for manual copy/pasting.

readNamedString
auto readNamedString(string wording, size_t expectedLength, bool abort)

Prompts the user to enter a string.

See Also

Meta