fix: added owner check to change_data_path
This commit is contained in:
parent
b124861f26
commit
f510a54183
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue