You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Objects need to know when they have not been fully populated. This can happen when the API sends us a subset of a hash instead of a full object hash.
This knowledge would also help us determine whether an object is new and thus needs to be created on Discord's end.
We could probably use the same or similar mechanism to know whether we need to update any fields, and which ones, thus enabling us to send PUT (or PATCH if that's an option) instead of a POST, which would help with #16.
We can also use this for lazy loading since we can populate an object with just its ID (for example) and let it fetch the rest of the data as needed.
The text was updated successfully, but these errors were encountered:
Objects need to know when they have not been fully populated. This can happen when the API sends us a subset of a hash instead of a full object hash.
This knowledge would also help us determine whether an object is new and thus needs to be created on Discord's end.
We could probably use the same or similar mechanism to know whether we need to update any fields, and which ones, thus enabling us to send PUT (or PATCH if that's an option) instead of a POST, which would help with #16.
We can also use this for lazy loading since we can populate an object with just its ID (for example) and let it fetch the rest of the data as needed.
The text was updated successfully, but these errors were encountered: