fix: awaited something

This commit is contained in:
Seaswimmer 2023-08-01 12:29:43 -04:00
parent f965ff3fef
commit 96f3273593
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -44,9 +44,9 @@ class MusicDownloader(commands.Cog):
def error(self, msg): def error(self, msg):
print(msg) print(msg)
message.edit(msg) message.edit(msg)
def hook(d): async def hook(d):
if d['status'] == 'finished': if d['status'] == 'finished':
message.edit(content='YouTube Downloader completed!') await message.edit(content='YouTube Downloader completed!')
ydl_opts = { ydl_opts = {
'logger': Logger(), 'logger': Logger(),
'progress_hooks': [hook], 'progress_hooks': [hook],