Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 552c8e5

Browse files
committed
Fix auto sharded bot returning None when retrieving websocket.
1 parent f4cc6ba commit 552c8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wavelink/player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def hook(self, event):
166166
pass
167167

168168
def _get_shard_socket(self, shard_id: int) -> Optional[DiscordWebSocket]:
169-
if self.bot.shard_id is None:
169+
if self.bot.shard_id is None and not shard_id == 0:
170170
return self.bot.ws
171171

172172
return self.bot.shards[shard_id].ws

0 commit comments

Comments
 (0)