Add Num-Shards header
This commit is contained in:
parent
d835c4d35f
commit
b98822d4a2
|
|
@ -96,7 +96,8 @@ class Node:
|
||||||
self._headers = {
|
self._headers = {
|
||||||
"Authorization": self._password,
|
"Authorization": self._password,
|
||||||
"User-Id": str(self._bot.user.id),
|
"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] = {}
|
self._players: Dict[int, Player] = {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue