diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index 7485f69..0213f1e 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -82,4 +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 = message.edit + else: + msg = message.send + message = await msg("YouTube Downloader started!") youtube_download(url, data_path, message)