From f2f7cafc0287499fe9ab288f35f93bd118ae9578 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 2 Aug 2023 01:24:27 -0400 Subject: [PATCH] feat: added handling for if no user is provided to dl-blacklist --- musicdownloader/musicdownloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index ea7d944..ac785c3 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -169,6 +169,8 @@ class MusicDownloader(commands.Cog): @commands.group(name="dl-blacklist", invoke_without_command=True) async def blacklist(self, ctx: commands.Context, user: discord.User = None): """Group command for managing the blacklist.""" + if not user: + user = ctx.author data_path = str(data_manager.cog_data_path()) + f"{os.sep}MusicDownloader" db_path = os.path.join(data_path, "database.db") if user is None: