-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method to upgrade a REST object to a Gateway object #589
Comments
Now that I check it out, only However, there's some non- |
This'd likely be called |
Most of the models seem fine to me, #582 mostly just changes events with the only models within its scope being the guild and message models which funnily enough are also the only models relevant to this and #587. Message and guild do unique stuff which isn't really representative of how models are handled in their current state. |
Summary
A method that upgrades from a REST object to a Gateway object.
Problem
Some of the Gateway objects are better (see for example
is_large
on GatewayGuild, etc.) However, to convert a REST object to a Gateway one, you need to use cache methods. That's annoying.Ideal implementation
RESTXXX.upgrade(self) -> Optional[GatewayXXX]
Just calls the respective cache methods.
Checklist
If it is a follow up of another issue, I have specified it.
The text was updated successfully, but these errors were encountered: