about summary refs log tree commit diff stats
path: root/discord/user.py
blob: 6000b314f1f95710e35fa9bf9c1a16631961fc21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class User:
    __slots__ = (
        "id",
        "username",
        "discriminator",
        "avatar",
        "avatar_decoration"
        "bot",
        "system",
        "mfa_enabled",
        "banner",
        "banner_color",
        "accent_color",
        "bio",
        "pronouns",
        "locale",
        "verified",
        "email",
        "flags",
        "premium_type",
        "public_flags"
    )

    def __init__(self, data: dict):
        for k in data:
            setattr(self, k, data[k])