fix: added owner check to change_data_path

This commit is contained in:
Seaswimmer 2023-08-01 15:04:07 -04:00
parent b124861f26
commit f510a54183
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

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