fix: made download bot-owner only

This commit is contained in:
Seaswimmer 2023-08-01 12:49:03 -04:00
parent efa8c150ed
commit 4b488a982f
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -27,6 +27,7 @@ class MusicDownloader(commands.Cog):
await ctx.send("The path you've provided doesn't exist!") await ctx.send("The path you've provided doesn't exist!")
@commands.command(aliases=["dl"]) @commands.command(aliases=["dl"])
@checks.is_owner()
async def download(self, ctx: commands.Context, url: str, subfolder: str = None): async def download(self, ctx: commands.Context, url: str, subfolder: str = None):
"""This command downloads a YouTube Video as an MP3 to the local music directory.""" """This command downloads a YouTube Video as an MP3 to the local music directory."""
def youtube_download(self, url: str, path: str, message: discord.Message): def youtube_download(self, url: str, path: str, message: discord.Message):