mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 07:54:36 +00:00
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:
|
||||
self._hook = hook
|
||||
|
||||
async def _hook(self, msg):
|
||||
async def _hook(self, *args):
|
||||
pass
|
||||
|
||||
async def send_as_json(self, data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user