fix(youtubedownloader): fixed blacklist
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 50s
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 50s
This commit is contained in:
parent
f3fd4a8311
commit
fc9e6fd273
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class YouTubeDownloader(commands.Cog):
|
|||
blacklisted_users = await self.config.blacklisted_users()
|
||||
for blacklisted_user_id in blacklisted_users:
|
||||
if blacklisted_user_id == user_id:
|
||||
return self.UserBlacklisted
|
||||
raise self.UserBlacklisted
|
||||
|
||||
@commands.command()
|
||||
@checks.is_owner()
|
||||
|
|
Loading…
Reference in a new issue