Python package for using the discord-user-history service.
Project description
discord-user-history
This package helps to communicate between a python discord bot and our service api. To use the package you'll need a verification token. You can request verification tokens via email. (iampekka058@gmail.com)
Install the package
pip install discord-user-history
Documentation
The Package is in an early state of development. The documentation will be edited soon.
User Object
User replicates a discord user.
- uuid (A uniqe id given by discord)
- name (e.g. IamPekka058)
- id (e.g. #0000)
user = User(uuid, name, id)
string getID()
Returns id of user.
string getName()
Returns name of user.
string getUUID()
Returns uuid of user.
string getPrintable()
Returns printable user object. Format: (Name)#(ID)<(UUID)>
User getUser(uuid)
Returns an User type object with information, if user with given uuid exists. If no user exists the method returns None.
service = HistoryService(token)
user = service.getUser(uuid)
bool existsUser(uuid)
Returns a bool, indicating if a user with given uuid exists. Returns false, if user doesn't exist.
service = HistoryService(token)
statement = service.existsUser(uuid)
createUser(uuid)
service = HistoryService(token)
service.createUser(uuid)
registerChanges(uuid, id, name)
service = HistoryService(token)
service.registerChanges(uuid, new_profile_id, new_profile_name)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for discord_user_history-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9d4617b442a11c04f5865cd7bb601fd7af450ec7c9cb7c0908524b0465e09f |
|
MD5 | 834d8a990c7f0bcc53fb576b8891e2bc |
|
BLAKE2b-256 | 9115c6a5eefbc255963f7aa4bae0b3a785c9422df07c21546e6e3561116a4601 |