Skip to content

Commit

Permalink
Remove dollar sign from identify payload (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa authored Jun 21, 2022
1 parent 5529b64 commit 22b6766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions hikari/impl/shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ async def _identify(self) -> None:
"compress": False,
"large_threshold": self._large_threshold,
"properties": {
"$os": f"{platform.system()} {platform.architecture()[0]}",
"$browser": f"hikari ({about.__version__}, aiohttp {aiohttp.__version__})",
"$device": f"hikari {about.__version__}",
"os": f"{platform.system()} {platform.architecture()[0]}",
"browser": f"hikari ({about.__version__}, aiohttp {aiohttp.__version__})",
"device": f"hikari {about.__version__}",
},
"shard": [self._shard_id, self._shard_count],
},
Expand Down
6 changes: 3 additions & 3 deletions tests/hikari/impl/test_shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,9 +1115,9 @@ async def test__identify(self, client):
"compress": False,
"large_threshold": 123,
"properties": {
"$os": "Potato PC ARM64",
"$browser": "hikari (v1.0.0, aiohttp v0.0.1)",
"$device": "hikari v1.0.0",
"os": "Potato PC ARM64",
"browser": "hikari (v1.0.0, aiohttp v0.0.1)",
"device": "hikari v1.0.0",
},
"shard": [0, 1],
"intents": 131071,
Expand Down

0 comments on commit 22b6766

Please sign in to comment.