We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7e5b8 commit 78c4966Copy full SHA for 78c4966
interactions/api/gateway/client.py
@@ -466,7 +466,10 @@ def __modify_guild_cache():
466
self._dispatch.dispatch(f"on_{name}", obj)
467
__modify_guild_cache()
468
469
- elif "_update" in name and hasattr(obj, "id"):
+ elif "_update" in name:
470
+ self._dispatch.dispatch(f"on_raw_{name}", obj)
471
+ if not hasattr(obj, "id"):
472
+ return
473
old_obj = self._http.cache[model].get(id)
474
if old_obj:
475
before = model(**old_obj._json)
@@ -481,7 +484,6 @@ def __modify_guild_cache():
481
484
self._dispatch.dispatch(
482
485
f"on_{name}", before, old_obj
483
486
) # give previously stored and new one
- return
487
488
elif "_remove" in name or "_delete" in name:
489
self._dispatch.dispatch(f"on_raw_{name}", obj)
0 commit comments