mirror of https://gitlab.com/litecord/litecord.git
gateway: don't check all the payloads
This commit is contained in:
parent
bcb626c024
commit
1fcce1ed0c
|
|
@ -130,7 +130,7 @@ class GatewayState:
|
||||||
if self.ws:
|
if self.ws:
|
||||||
if (
|
if (
|
||||||
event_type.startswith("MESSAGE_")
|
event_type.startswith("MESSAGE_")
|
||||||
and payload["d"]["message_reference"] is not None
|
and (payload.get("d") or {}).get("message_reference") is not None
|
||||||
and self.ws.ws_properties.version > 7
|
and self.ws.ws_properties.version > 7
|
||||||
):
|
):
|
||||||
payload["d"]["type"] = 19
|
payload["d"]["type"] = 19
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue