fix: fixed an await issue

This commit is contained in:
Seaswimmer 2023-07-31 23:24:28 -04:00
parent 112ec67bdd
commit 19a9bc9bc9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -82,8 +82,8 @@ class MusicDownloader(commands.Cog):
makedirs(data_path)
except OSError as e:
await message.edit(f"Encountered an error attempting to create the subfolder!\n`{e}`")
msg = await message.edit
msg = message.edit
else:
msg = await ctx.send
message = msg("YouTube Downloader started!")
msg = ctx.send
message = await msg("YouTube Downloader started!")
youtube_download(url, data_path, message)