From 77602f773feea86f1810ae30017d154534278255 Mon Sep 17 00:00:00 2001 From: EvieePy Date: Mon, 5 Jun 2023 23:30:54 +1000 Subject: [PATCH] Fix broken user_limit logic. --- wavelink/player.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wavelink/player.py b/wavelink/player.py index c7640816..8c1b747a 100644 --- a/wavelink/player.py +++ b/wavelink/player.py @@ -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}>'