Add Num-Shards header

This commit is contained in:
isaa_ctaylor 2022-02-15 10:21:53 +00:00 committed by GitHub
parent d835c4d35f
commit b98822d4a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ class Node:
self._headers = {
"Authorization": self._password,
"User-Id": str(self._bot.user.id),
"Client-Name": f"Pomice/{__version__}"
"Client-Name": f"Pomice/{__version__}",
"Num-Shards": getattr(bot, "shards", 1)
}
self._players: Dict[int, Player] = {}