Skip to content

Commit

Permalink
Fix broken user_limit logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jun 5, 2023
1 parent 2a3e418 commit 77602f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wavelink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ async def connect(self, *, timeout: float, reconnect: bool, **kwargs: Any) -> No
limit: int = self.channel.user_limit
total: int = len(self.channel.members)

if total >= limit:
if limit == 0:
pass

elif total >= limit:
self._invalidate()

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

0 comments on commit 77602f7

Please sign in to comment.