Is there a way to restart the bot without disconnecting from discord?
I know reloading cogs exists, but that doesn't work if you're doing things like changing intents, or changing the database.
I need a way to essentially reload the entire script without it disconnecting from discord as I want to preserve my interactions. I have a channel with a bunch of messages with views on each of them with no timeout, so when I restart the bot all of these would break.
Anyone got any ideas?
#Restart the bot without disconnecting.
1 messages · Page 1 of 1 (latest)
use nodemon
from npm
it's okay
so like, for reference, the "Identify" process (the part that actually loads your intents and authenticates with your token) is all one thing
I dont know if this is possible, but someones typin
me when people don't read the full question
yep
.
you can set persistent views which will still work on reconnect, however as I said intents are sent with the Identify payload (when the bot actually authenticates w/ discord)
well yes, but they're isnt another way
how do I do that
all view elements need a custom id and a timeout of None
all I need is a view to work after I restart the bot
.
does the view have a timeout of none or the actual elements
@tawdry rover
elements have custom ids, not the view itself
lol
thank you <3