fix: awaited something
This commit is contained in:
parent
f965ff3fef
commit
96f3273593
1 changed files with 2 additions and 2 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue