diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index 921b874..b7b33f3 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -44,9 +44,9 @@ class MusicDownloader(commands.Cog): def error(self, msg): print(msg) message.edit(msg) - def hook(d): + async def hook(d): if d['status'] == 'finished': - message.edit(content='YouTube Downloader completed!') + await message.edit(content='YouTube Downloader completed!') ydl_opts = { 'logger': Logger(), 'progress_hooks': [hook],