getTwitchUser

Fetches information about a Twitch user and returns it in the form of a Voldemort struct with nickname, display name and account ID members.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
getTwitchUser
(,
const string givenName
,
const uint id = 0
,
const bool searchByDisplayName = false
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

givenName string

Name of user to look up.

id uint

Optional numeric ID of user to look up, if no givenName given.

searchByDisplayName bool

Whether or not to also attempt to look up givenName as a display name.

Return Value

Type: auto

Voldemort aggregate struct with nickname, displayName and id members.