getTwitchGame

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
getTwitchGame
(,
const string name
,
const uint id = 0
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

name string

Name of game to look up.

id uint

Numerical ID of game to look up.

Return Value

Type: auto

Voldemort aggregate struct with id and name members.