Send both updated and outdated fields on gateway 'message update' events #3705
Replies: 3 comments 5 replies
-
This can all be handled by the bot itself with better cache management, though. I'd argue that actions occuring on the message update event that require the previous version of that message are absurdly rare. So, you're asking Discord to re-engineer a process in a very costly way, to use up additional bandwidth for everyone to basically double the size of all message update events received, for something that serves a very limited purpose and can already be handled by better cache management on the side of bots that actually need these functions. |
Beta Was this translation helpful? Give feedback.
-
To clarify, is this about receiving the message object before it was updated or receiving a full message object on MESSAGE_UPDATE? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Now, I know that this suggestion would be a burden to implement on discord, but hear me out:
Currently if discord bots want to listen for update events and also do an action with the old information they have to cache all of the old information themselves. This is not an issue for user update, guild update, member update, channel update, thread update because that information is already cached anyway as it's required for operational purposes and the amount of those objects is pale by comparison to the message objects. If, for example, bots want to listen for changes in messages: say for a log, or other purposes - they need to cache those messages in memory in case of a possible update, this is extremely unfeasible because:
Therefore, 'range of sight' for being able to determine changes in a message is extremely limited up the last few hundred send in a channel after the bot last restarted; this suggestion would allow us to save a lot of resources by being able to drop the message cache; and this would be an amazing thing.
To be noted that I'm fully aware of the implications of this feature request: it would be more costly on the discord side; it would create an inconsistency in the gateway update event model that we see thought the API and it would slightly increase the message update event payload size.
Beta Was this translation helpful? Give feedback.
All reactions