Skip to content

Commit 7dcd743

Browse files
authored
refactor: change condition in update dispatch (#1004)
1 parent ff8071c commit 7dcd743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/api/gateway/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def __modify_guild_cache():
465465

466466
elif "_update" in name:
467467
self._dispatch.dispatch(f"on_raw_{name}", obj)
468-
if not hasattr(obj, "id"):
468+
if not id:
469469
return
470470
old_obj = self._http.cache[model].get(id)
471471
if old_obj:

0 commit comments

Comments
 (0)