getTwitchUser

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

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
getTwitchUser
(,
const string givenName
,
const string givenIDString
,
const Flag!"searchByDisplayName" searchByDisplayName = No.searchByDisplayName
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

givenName string

Name of user to look up.

givenIDString string

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

searchByDisplayName Flag!"searchByDisplayName"

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 idString members.

Meta