I'm creating a bot to discord, using discord.js, it works with tickets, where a user select the category of problem he want in a select menu, after this, a modal is opened and ask the user a title and a description to the problem. After this, a chat is created for the user with a initial message and at the same time, a message is send to a chat that only admins have permissions, with a button to enter the service and another to finish the service. When the service is complete, the bot send a embed to both chats, asking for a rating, so it needs the collector.
The question is, if the bot crashes or the server crashes, when the bot restart, it loses the connections with those messages, so the buttons does'nt work.
I remember using partials for this kind of stuff. I haven't used them in a long time so I don't really know what will happen, your mileage may vary.
However, it might give you a place to start.
Good luck!