Skip to content
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

Render to existing messages / hydration #7

Open
itsMapleLeaf opened this issue Jan 13, 2022 · 5 comments
Open

Render to existing messages / hydration #7

itsMapleLeaf opened this issue Jan 13, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@itsMapleLeaf
Copy link
Owner

Right now, Reacord can create a new message and render to that, but it cannot take control of an existing message and use that. This is similar in concept to DOM hydration, and could be used to keep previous messages interactive after a bot restart, among other things. What this implementation looks like, I'm not sure yet 🤔

@itsMapleLeaf itsMapleLeaf added the enhancement New feature or request label Jan 13, 2022
@frixaco
Copy link

frixaco commented Mar 27, 2022

Hey, @itsMapleLeaf!
May I know what's the status on this?

@itsMapleLeaf
Copy link
Owner Author

Hey, my attention has been elsewhere and away from Reacord lately, so this hasn't seen any progress. Always happy to accept PRs though

@4lve
Copy link

4lve commented Sep 27, 2023

Maybe add a way to save important message states and load them again. You could also allow the component to take a message and recover the state that way

@4lve
Copy link

4lve commented Oct 3, 2023

Anyone else have any suggestions on how this can be done? Maybe like storing it in a database?

@itsMapleLeaf itsMapleLeaf added the help wanted Extra attention is needed label Oct 13, 2023
@tomli380576
Copy link

For anyone attempting this, note that the <Message>.edit() method in discord.js will fail for messages that have been in a channel for a long time (usually 1.5~2 months). There won't be any errors and the promise will successfully resolve, but the actual message is not updated. I don't know if it's an issue with discord.js or the discord API itself though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants