From f510a54183a989c8cbae356fe1f0c8fa44a6967f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 15:04:07 -0400 Subject: [PATCH] fix: added owner check to change_data_path --- musicdownloader/musicdownloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index 8fa745c..c9e5232 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -14,6 +14,7 @@ class MusicDownloader(commands.Cog): ) @commands.command() + @checks.is_owner() async def change_data_path(self, ctx: commands.Context, data_path: str = None): """This command changes the data path this cog outputs to.""" old_path = await self.config.save_directory()