User

class twitchio.User

Bases: PartialUser

Represents a User.

This class inherits from PartialUser and contains additional information about the user.

id

The user’s ID.

Type

str

name

The user’s name. In most cases, this is provided. There are however, rare cases where it is not.

Type

str | None

display_name

The display name of the user.

Type

str

type

The type of the user. Possible values are:

  • admin - Twitch administrator

  • global_mod

  • staff - Twitch staff

  • empty string - Normal user

Type

Literal[“admin”, “global_mod”, “staff”, “”]

broadcaster_type

The broadcaster type of the user. Possible values are:

  • affiliate

  • partner

  • empty string - Normal user

Type

Literal[“affiliate”, “partner”, “”]

description

Description of the user.

Type

str

profile_image

Profile image as an asset.

Type

Asset

offline_image

Offline image as an asset, otherwise None if broadcaster as not set one.

Type

Asset | None

email

The user’s verified email address. The object includes this field only if the user access token includes the user:read:email scope.

Type

str | None

created_at

When the user was created.

Type

datetime.datetime