aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-04 10:09:25 -0400
committerRapptz <[email protected]>2021-04-04 10:15:30 -0400
commit54288879e28cc63eefce33311ec393a4eed476c4 (patch)
tree5bada5e0d4f1c997773d7216d14b3338ac76f1fa /discord/gateway.py
parentRemove asyncio.Task subclass in preference to task names (diff)
downloaddiscord.py-54288879e28cc63eefce33311ec393a4eed476c4.tar.xz
discord.py-54288879e28cc63eefce33311ec393a4eed476c4.zip
Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've missed but this first pass is enough to get a clear separation.
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 17801ee1..591cb74d 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -378,9 +378,6 @@ class DiscordWebSocket:
}
}
- if not self._connection.is_bot:
- payload['d']['synced_guilds'] = []
-
if self.shard_id is not None and self.shard_count is not None:
payload['d']['shard'] = [self.shard_id, self.shard_count]
@@ -622,13 +619,6 @@ class DiscordWebSocket:
log.debug('Sending "%s" to change status', sent)
await self.send(sent)
- async def request_sync(self, guild_ids):
- payload = {
- 'op': self.GUILD_SYNC,
- 'd': list(guild_ids)
- }
- await self.send_as_json(payload)
-
async def request_chunks(self, guild_id, query=None, *, limit, user_ids=None, presences=False, nonce=None):
payload = {
'op': self.REQUEST_MEMBERS,