discordapi.user
Module Contents
Classes
Object which automatically sets the attribute based on a dict object. |
- class discordapi.user.User(client, data)
Bases:
discordapi.dictobject.DictObject
Object which automatically sets the attribute based on a dict object.
- _json
The original dict object in which the class was constructed from.
Constructs the class from the data.
This automatically sets the attributes from the dict. additionally, keys in keylist will be set as an attribute with the value of None when the attribute doesn’t exist- this is to ensure that it won’t overwrite the existing keys when running __init__ in already initialized instance.
- dm(self)
- __str__(self)
Return str(self).