diff options
| author | Imayhaveborkedit <[email protected]> | 2021-05-25 02:22:21 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-25 02:22:21 -0400 |
| commit | ac061c31fbb57e1c19378f3f2538dad82772e847 (patch) | |
| tree | 60434b74c88fd793c6761a614ecf4be38110bbe4 | |
| parent | Fix cached_slot_property typings again (diff) | |
| download | discord.py-ac061c31fbb57e1c19378f3f2538dad82772e847.tar.xz discord.py-ac061c31fbb57e1c19378f3f2538dad82772e847.zip | |
Fix default hook signature
Since the hook function can be both bound and unbound
the bound signature needs to accept an extra argument
| -rw-r--r-- | discord/gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 077d16d2..5fec8748 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -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): |