aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImayhaveborkedit <[email protected]>2021-05-25 02:22:21 -0400
committerGitHub <[email protected]>2021-05-25 02:22:21 -0400
commitac061c31fbb57e1c19378f3f2538dad82772e847 (patch)
tree60434b74c88fd793c6761a614ecf4be38110bbe4
parentFix cached_slot_property typings again (diff)
downloaddiscord.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.py2
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):