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

Commit 77602f7

Browse files
committed
Fix broken user_limit logic.
1 parent 2a3e418 commit 77602f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wavelink/player.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ async def connect(self, *, timeout: float, reconnect: bool, **kwargs: Any) -> No
347347
limit: int = self.channel.user_limit
348348
total: int = len(self.channel.members)
349349

350-
if total >= limit:
350+
if limit == 0:
351+
pass
352+
353+
elif total >= limit:
351354
self._invalidate()
352355

353356
msg: str = f'There are currently too many users in this channel. <{total}/{limit}>'

0 commit comments

Comments
 (0)