mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-06 11:57:17 +00:00
Fix debug event toggle not triggering for raw receive
This commit is contained in:
parent
b87d306a70
commit
035d110837
@ -293,10 +293,10 @@ class DiscordWebSocket:
|
|||||||
def is_ratelimited(self):
|
def is_ratelimited(self):
|
||||||
return self._rate_limiter.is_ratelimited()
|
return self._rate_limiter.is_ratelimited()
|
||||||
|
|
||||||
def log_receive(self, data, /):
|
def debug_log_receive(self, data, /):
|
||||||
self._dispatch('socket_raw_receive', data)
|
self._dispatch('socket_raw_receive', data)
|
||||||
|
|
||||||
def empty_log_receive(self, _, /):
|
def log_receive(self, _, /):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -326,7 +326,7 @@ class DiscordWebSocket:
|
|||||||
|
|
||||||
if client._enable_debug_events:
|
if client._enable_debug_events:
|
||||||
ws.send = ws.debug_send
|
ws.send = ws.debug_send
|
||||||
ws.log_receive = ws.empty_log_receive
|
ws.log_receive = ws.debug_log_receive
|
||||||
|
|
||||||
client._connection._update_references(ws)
|
client._connection._update_references(ws)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user