Browse Source

Merge branch 'master' of https://github.com/b1naryth1ef/disco

pull/106/head
Dan 7 years ago
parent
commit
a7aa98e4dc
  1. 4
      disco/api/client.py
  2. 2
      docs/book.json

4
disco/api/client.py

@ -493,6 +493,10 @@ class APIClient(LoggingClass):
webhooks = Webhook.create_hash(self.client, 'id', data['webhooks'])
return AuditLogEntry.create_map(self.client, r.json()['audit_log_entries'], users, webhooks, guild_id=guild)
def users_get(self, user):
r = self.http(Routes.USERS_GET, dict(user=user))
return User.create(self.client, r.json())
def users_me_get(self):
return User.create(self.client, self.http(Routes.USERS_ME_GET).json())

2
docs/book.json

@ -1,6 +1,6 @@
{
"title": "Disco",
"plugins": ["prism", "-highlight", "hints"],
"plugins": ["prism", "-highlight", "hints", "anchorjs"],
"pluginsConfig": {
"anchorjs": {
"placement": "left",

Loading…
Cancel
Save