getGame

Fetches information about a game; its numerical ID and full name.

If id is passed, then it takes priority over name.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
getGame
(,
const string name = string.init
,
const ulong id = 0
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

name string

Name of game to look up.

id ulong

Numerical ID of game to look up.

caller string

Name of the calling function.

Return Value

Type: auto

Voldemort aggregate struct with id and name members.

Throws

UnexpectedJSONException on unexpected JSON received.

See Also