Timeout on deferReply

Good morning, is there a way to extend the time on the TOKEN for when you have run interaction.deferReply() obvisouly it's only active for 15 minutes but say i want to double it or extend it. For instance if i have a bot that runs through a loop that might run for 20 minutes, is there a way to reset the token or extend the deferReply What are other work arounds people have come up with? I'm working with v14.
4 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
MrMythical
MrMythical2y ago
If you need this much time, you should just use a regular message
Oroton
OrotonOP2y ago
You mean don’t defer it to begin with? So what my bot does. it it grabs information from a website for x amount of items. say first 200 results from a google query. It then stores the results in a db. my bot while this is happening, updates the interaction as each iteration passes as a 'live' feed back. When i do 50 queries, it's fine because it's less than 15 minutes. but if i do 100 it takes longer than 15 mins and crashes.. @mrmythical So what i've learned is that i have to i need to create the message, fetch it then edit that message. is there documenation on how to edit an old message? Thanks.
d.js docs
d.js docs2y ago
method Message#edit() Edits the content of the message.
Want results from more Discord servers?
Add your server