SEBAS
SEBAS
DIAdiscord.js - Imagine an app
Created by SEBAS on 12/1/2023 in #djs-questions
Workaround Invalid Webhook Token Error
Recently, I have found that my game bot crashes because it throws Invalid Webhook Token Error when editing or defering an interaction. Looking at the logs, it seems that sometimes users take longer than 15 minutes to finish a match, which I understand it is the limit of a token since the first acknowledgement. I want to know what workaround do you suggest I could implement to allow users to play matches for longer than 15 minutes. I've been thinking about doing something like catching those failed interaction and getting the message content and then sending it in another message, but I don't know if it is possible or if there is better way to continue the game in the same message (just like we defer the messages, if there is a way to defer a webhook token to extend the limit).
14 replies