mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add support for guild intents
This commit is contained in:
1 parent
9036b9651b
commit
a6381dcf77
4 files changed
+331
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user