Browse Source

Fix default hook signature

Since the hook function can be both bound and unbound
the bound signature needs to accept an extra argument
pull/6887/merge
Imayhaveborkedit 4 years ago
committed by GitHub
parent
commit
ac061c31fb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/gateway.py

2
discord/gateway.py

@ -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…
Cancel
Save