fix(youtubedownloader): fixed blacklist
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 50s

This commit is contained in:
Seaswimmer 2023-11-26 13:24:02 -05:00
parent f3fd4a8311
commit fc9e6fd273
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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()