diff options
| author | NCPlayz <[email protected]> | 2019-03-15 19:39:15 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-19 09:22:48 -0400 |
| commit | 8a30a4cac0651df5a24cb744fc104ced90a4cf3a (patch) | |
| tree | f211cab296d0aa43a6df3aa7f55c3771d34909c9 /discord/http.py | |
| parent | Expose Metadata (diff) | |
| download | discord.py-8a30a4cac0651df5a24cb744fc104ced90a4cf3a.tar.xz discord.py-8a30a4cac0651df5a24cb744fc104ced90a4cf3a.zip | |
Add support for guild widget
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 72e9f8ec..44b007bb 100644 --- a/discord/http.py +++ b/discord/http.py @@ -659,6 +659,9 @@ class HTTPClient: r = Route('GET', '/guilds/{guild_id}/audit-logs', guild_id=guild_id) return self.request(r, params=params) + def get_widget(self, guild_id): + return self.request(Route('GET', '/guilds/{guild_id}/widget.json', guild_id=guild_id)) + # Invite management def create_invite(self, channel_id, *, reason=None, **options): |