fix: added kwarg to change_data_path so it properly supports spaces

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

View file

@ -15,7 +15,7 @@ class MusicDownloader(commands.Cog):
@commands.command() @commands.command()
@checks.is_owner() @checks.is_owner()
async def change_data_path(self, ctx: commands.Context, data_path: str = None): async def change_data_path(self, ctx: commands.Context, *, data_path: str = None):
"""This command changes the data path this cog outputs to.""" """This command changes the data path this cog outputs to."""
old_path = await self.config.save_directory() old_path = await self.config.save_directory()
if not data_path: if not data_path: