aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-01 02:42:11 -0400
committerRapptz <[email protected]>2021-08-01 02:42:11 -0400
commit035d1108375434d6a6bd909fa87c397231a81723 (patch)
tree36dffbf02d2534c7ba5bd2efe744b22114bb0661 /discord
parentRemove unused variable in view (diff)
downloaddiscord.py-035d1108375434d6a6bd909fa87c397231a81723.tar.xz
discord.py-035d1108375434d6a6bd909fa87c397231a81723.zip
Fix debug event toggle not triggering for raw receive
Diffstat (limited to 'discord')
-rw-r--r--discord/gateway.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index e0814935..6bbbbd9b 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -293,10 +293,10 @@ class DiscordWebSocket:
def is_ratelimited(self):
return self._rate_limiter.is_ratelimited()
- def log_receive(self, data, /):
+ def debug_log_receive(self, data, /):
self._dispatch('socket_raw_receive', data)
- def empty_log_receive(self, _, /):
+ def log_receive(self, _, /):
pass
@classmethod
@@ -326,7 +326,7 @@ class DiscordWebSocket:
if client._enable_debug_events:
ws.send = ws.debug_send
- ws.log_receive = ws.empty_log_receive
+ ws.log_receive = ws.debug_log_receive
client._connection._update_references(ws)