fix: fixed an await issue
This commit is contained in:
parent
112ec67bdd
commit
19a9bc9bc9
1 changed files with 3 additions and 3 deletions
|
@ -82,8 +82,8 @@ class MusicDownloader(commands.Cog):
|
||||||
makedirs(data_path)
|
makedirs(data_path)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
await message.edit(f"Encountered an error attempting to create the subfolder!\n`{e}`")
|
await message.edit(f"Encountered an error attempting to create the subfolder!\n`{e}`")
|
||||||
msg = await message.edit
|
msg = message.edit
|
||||||
else:
|
else:
|
||||||
msg = await ctx.send
|
msg = ctx.send
|
||||||
message = msg("YouTube Downloader started!")
|
message = await msg("YouTube Downloader started!")
|
||||||
youtube_download(url, data_path, message)
|
youtube_download(url, data_path, message)
|
||||||
|
|
Loading…
Reference in a new issue