Skip to content

Badge

Badge

Badge ยค

Represents if a Sendou.ink Badge

Attributes:

Name Type Description
name str

Badge Name

count int

Badge Count

image_url str

Badge Image URL

gif_url str

Badge Gif URL

Source code in sendou/models/badge.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Badge:
    """
    Represents if a Sendou.ink Badge

    Attributes:
        name (str): Badge Name
        count (int): Badge Count
        image_url (str): Badge Image URL
        gif_url (str): Badge Gif URL
    """
    name: str
    count: int
    image_url: str
    gif_url: str

    def __init__(self, data: dict):
        self.name = data.get("name", "")
        self.count = data.get("count", 0)
        self.image_url = data.get("imageUrl", "")
        self.gif_url = data.get("gifUrl", "")