fix: made download bot-owner only
This commit is contained in:
parent
efa8c150ed
commit
4b488a982f
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue