Chloe
DIAdiscord.js - Imagine an app
•Created by Chloe on 4/26/2024 in #djs-questions
Button Automatically Pressing
Hello! Im currently working on a bot using oauth2. Im in the middle of rewriting how i handle refreshing access tokens if they are invalid but ive stumbled on an issue. As you can see in the video attached i run my /dashboard command and then click Verify Tokens button that works fine but once the verification is complete (i have an invalid access token in my database on purpose for debuging) im given the option if i want to try refreshing the invalid tokens both button should currently just respond with a placeholder text but for some reason when the message is sent the Yes button pushes it self and says interaction failed.
Here is the code for the command: https://pastecode.io/s/om3zdqnv (Some functions are not being used as like i said im in the middle of rewriting it)
Huge thanks to anyone who even takes a look at this
20 replies