Fix default hook signature

Since the hook function can be both bound and unbound
the bound signature needs to accept an extra argument
This commit is contained in:
Imayhaveborkedit 2021-05-25 02:22:21 -04:00 committed by GitHub
parent 3c90f16bf0
commit ac061c31fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -717,7 +717,7 @@ class DiscordVoiceWebSocket:
if hook:
self._hook = hook
async def _hook(self, msg):
async def _hook(self, *args):
pass
async def send_as_json(self, data):