From 96f3273593b78ad3f65e2554ad2a639b3a159f1c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 12:29:43 -0400 Subject: [PATCH] fix: awaited something --- musicdownloader/musicdownloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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],