about summary refs log blame commit diff stats
path: root/discord/user.py
blob: 6000b314f1f95710e35fa9bf9c1a16631961fc21 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                        
                           



                      
                       
                       

                   








                                   

                                     
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])