diff options
| author | Rapptz <[email protected]> | 2019-12-20 23:10:46 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:15 -0400 |
| commit | a6381dcf77f773316ea59767a06d06cfcc57e4d9 (patch) | |
| tree | 91e3606099ec7329518f5e9648a784bc3da83e73 /discord/gateway.py | |
| parent | Properly handle disconnects in voice when force disconnected (diff) | |
| download | discord.py-a6381dcf77f773316ea59767a06d06cfcc57e4d9.tar.xz discord.py-a6381dcf77f773316ea59767a06d06cfcc57e4d9.zip | |
Add support for guild intents
Diffstat (limited to 'discord/gateway.py')
| -rw-r--r-- | discord/gateway.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 382d60f1..ab595566 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -343,6 +343,9 @@ class DiscordWebSocket: 'afk': False } + if state._intents is not None: + payload['d']['intents'] = state._intents + await self.call_hooks('before_identify', self.shard_id, initial=self._initial_identify) await self.send_as_json(payload) log.info('Shard ID %s has sent the IDENTIFY payload.', self.shard_id) |