Button Pagination not working?

I'm doing an auto updating help command just so my server can keep up to date with what commands are available. And yes I know most of the await aren't needed...
Code:
Code:
https://pastebin.com/mDraff2e
Button Pagination Code
Button Pagination Code
https://pastebin.com/Vy32rqsL
What is happening
What is happening
It isn't recognizing when I click the next button, and I'm not sure why
Pastebin
Help.js File - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Buton Pagination - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
10 Replies
d.js toolkit
d.js toolkit5mo ago
Amgelo
Amgelo5mo ago
explain "it isn't recognizing"
Sambeano
SambeanoOP5mo ago
When I click the next button it just sits there and does nothing. It does actually recognize it I think because when I console.log i.deferUpdate I get a console log. Would that help if I show that?
Amgelo
Amgelo5mo ago
yes if the interaction wasn't picked up at all it would show an error to the user if it doesn't show anything then it deferred an update
Sambeano
SambeanoOP5mo ago
not sure what part you would want to look at https://pastebin.com/7pHwJZSn
Pastebin
i.deferupdate().then(console.log) - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Amgelo
Amgelo5mo ago
this logic is wrong
No description
Sambeano
SambeanoOP5mo ago
fffffff. the else if needs one more } in front of it doesn't it? one sec
Amgelo
Amgelo5mo ago
- there's no "setCustomId" in interactions, not "CustomId", it's customId - your if logic is wrong as well yeah and please don't just add await to every single statement in your code it makes the code very unreadable learn what promises are, how they work
d.js docs
d.js docs5mo ago
Resources to understand Promise: - MDN: learn more - Guide: learn more - JavaScript info: learn more
Sambeano
SambeanoOP5mo ago
The if statement fixed it 🤦‍♂️ I didn't even realize I had the .setCustomId and the .CustomIds like that either...obviously lol It works now...Sometimes it's not about getting straight answers but just getting a second set of eyes on stuff

Did you find this page helpful?