Module twitchpy.dataclasses.predictor

Classes

class Predictor (user: User,
channel_points_used: int,
channel_points_won: int)
Expand source code
@dataclass
class Predictor:
    """
    Represents a predictor in a prediction

    Attributes:
        user (User): The viewer
        channel_points_used (int): The number of Channel Points the viewer spent
        channel_points_won (int): The number of Channel Points distributed to the viewer
    """

    user: User
    channel_points_used: int
    channel_points_won: int

Represents a predictor in a prediction

Attributes

user : User
The viewer
channel_points_used : int
The number of Channel Points the viewer spent
channel_points_won : int
The number of Channel Points distributed to the viewer

Class variables

var channel_points_used : int

The type of the None singleton.

var channel_points_won : int

The type of the None singleton.

var userUser

The type of the None singleton.