Relationships - PetterKraabol/Twitch-Python GitHub Wiki

diagram

Unreachable objects are marked with x.

Examples

# Twitch API

videos = helix.user('zarlach').videos()

video, comments = helix.user('zarlach').videos().comments()

comments = helix.video(112233).comments()
# Twitch Chat

def handle_message(message: twitch.chat.Message):
    user: helix.User = message.user()
    print(user.display_name)

twitch.Chat('#reckful', nickname='zarlach', oauth='oauth:xxxxxxx', helix=helix).subscribe(handle_message)