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:
parent
3c90f16bf0
commit
ac061c31fb
@ -717,7 +717,7 @@ class DiscordVoiceWebSocket:
|
|||||||
if hook:
|
if hook:
|
||||||
self._hook = hook
|
self._hook = hook
|
||||||
|
|
||||||
async def _hook(self, msg):
|
async def _hook(self, *args):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def send_as_json(self, data):
|
async def send_as_json(self, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user