Python package for using the discord-user-history service.
Project description
py-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
You can create a User type object. The User object has 3 attributes.
- uuid (A uniqe id given by discord)
- name (Name users can choose by themselves e.g. IamPekka058)
- id (Id nitro users can choose their id by themselves e.g. #0000)
from User import User
user = User(uuid, name, id)
getUser(uuid)
Returns an User type object with information, if user with given uuid exists. If no user exists the method returns None.
from HistoryService import HistoryService
service = HistoryService(token)
user = service.getUser(uuid)
existsUser(uuid)
Returns a bool, indicating if a user with given uuid exists. If no user exists the method returns False.
from HistoryService import HistoryService
service = HistoryService(token)
statement = service.existsUser(uuid)
createUser(uuid)
from HistoryService import HistoryService
service = HistoryService(token)
service.createUser(uuid)
registerChanges(uuid, id, name)
from HistoryService import HistoryService
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe5c0f7fdb8ac2cc5772a48df8c133153ce0b240a0d5f02d2a51d8f6955465e |
|
MD5 | 830462344cd73e4a00d8d4dd75a22956 |
|
BLAKE2b-256 | 7b3e1ce2b47f645b7c93f6e46348f4fbc079449d6924b5b8a46314fb010b010a |