diff options
author | 2018-03-30 15:56:49 +0100 | |
---|---|---|
committer | 2018-03-30 15:56:49 +0100 | |
commit | 885e614723c7890f616e7288d8ae6f0b8c335b01 (patch) | |
tree | a0e5b56316138a196ab86b42051a8abb7b36def4 /pysite/views/api/bot/user.py | |
parent | I'm assuming this is the last linting commit for now... (diff) |
Accept username/discriminator from the bot and remove it from oauth
Diffstat (limited to 'pysite/views/api/bot/user.py')
-rw-r--r-- | pysite/views/api/bot/user.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pysite/views/api/bot/user.py b/pysite/views/api/bot/user.py index a69af0fb..4b66cff0 100644 --- a/pysite/views/api/bot/user.py +++ b/pysite/views/api/bot/user.py @@ -12,15 +12,12 @@ from pysite.mixins import DBMixin SCHEMA = Schema([ { "user_id": int, - "roles": [int] + "roles": [int], + "username": str, + "discriminator": str } ]) -REQUIRED_KEYS = [ - "user_id", - "roles" -] - class UserView(APIView, DBMixin): path = "/user" |