How to update an embed after button click with new values?

My Code: https://sourceb.in/q1iy2h2Nfx I want to update my embed with the new page values etc. whenever the 'gelöst' or 'ungelöst' button is clicked so that I dont get Invalid Form Errors when sending the new embed. How could I do this? I know that my code is very messy at the point, I just wanted to get it to work before i make it clean. Thank you!
SourceBin
Update Embed
Instantly share your code with the world.
35 Replies
d.js toolkit
d.js toolkit12mo 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.
EndergamerMC
EndergamerMC12mo ago
discord.js version: v14.11.0 node version: v18.15.0 So it should work like this then? So there's a weird behaviour. When I click the 'gelöst' button, it pushes the object as it should but the embed and the components don't get updated. After I click another time, it edits the embed and components I'll send you a video
EndergamerMC
EndergamerMC12mo ago
EndergamerMC
EndergamerMC12mo ago
So I need to move the part where I define all the buttons and the embed at the bottom of my file? ? Yes and after that I was sleeping Yes because I haven’t got an answer from you I have tried it and it didn’t work so that’s why I am asking you for further help Yes and now I’m asking you for more help
d.js docs
d.js docs12mo ago
To help you we need more information: - What are you trying to do? - What is your code? - What errors and debug logs do you have?
EndergamerMC
EndergamerMC12mo ago
I have read #how-to-get-help and I do not ignore what you write.
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
EndergamerMC
EndergamerMC12mo ago
No? .
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
EndergamerMC
EndergamerMC12mo ago
Yes I'm sorry, I haven't had time to really try out to code it but now I have tried it and changed the order of my code but it still doesn't work. Here's my new code: https://srcb.in/k6HUMLoMJ2 . Would you please forgive me for my bad behaviour and look over my code to tell me what I am doing wrong? Oh, now it works, thank you! But I have a new error. Whenever I remove all the objects from the embed It displays it completely wrong, ill send you a video one sec please I have already tried it And it just doesn’t make sense to me why it does it wrong when I calculate the new indexes on every button click
EndergamerMC
EndergamerMC12mo ago
EndergamerMC
EndergamerMC12mo ago
I have now tried multiple things to get it to work but I just cant find the right solution. Could you please give me further help? Here's my code: https://srcb.in/YQDYvUA7Hd I’m not pinging you I don’t see any message in this forum post where I am pinging you
chewie 🌈
chewie 🌈12mo ago
chewie 🌈
chewie 🌈12mo ago
ghost ping, even worse
EndergamerMC
EndergamerMC12mo ago
yeah im replying but not pinging
chewie 🌈
chewie 🌈12mo ago
sorry fixed picture
EndergamerMC
EndergamerMC12mo ago
im not violating the rules, it says dont ping random members, he was helping me before so it isnt random
chewie 🌈
chewie 🌈12mo ago
ghostpinging is against the rules
EndergamerMC
EndergamerMC12mo ago
says what point
chewie 🌈
chewie 🌈12mo ago
falls under rule 1
EndergamerMC
EndergamerMC12mo ago
dont see that anywhere
EndergamerMC
EndergamerMC12mo ago
chewie 🌈
chewie 🌈12mo ago
Nobody likes trolls and obnoxious people.
EndergamerMC
EndergamerMC12mo ago
im not a troll im just asking for help
chewie 🌈
chewie 🌈12mo ago
just stop ghostpinging people and thats it no need to keep arguing about it
EndergamerMC
EndergamerMC12mo ago
im just used to that from litterally all other servers im in, they all tell you to ping them
chewie 🌈
chewie 🌈12mo ago
mate I'm talking about ghostpinging and if someone tells you to not ping them, you just dont do it
EndergamerMC
EndergamerMC12mo ago
yea ok ill keep that in mind for the future am I allowed to ping him once so that he reads my apology?
chewie 🌈
chewie 🌈12mo ago
no if he chooses to look here, then he sees it
EndergamerMC
EndergamerMC12mo ago
he won't look here anymore, he doesnt want to help me anymore
chewie 🌈
chewie 🌈12mo ago
shrug
EndergamerMC
EndergamerMC12mo ago
but i am allowed to dm him, right?
chewie 🌈
chewie 🌈12mo ago
if he didn't block you sure
EndergamerMC
EndergamerMC12mo ago
can we then delete our messages so if someone decides to help me he doesn't have to scroll all the way up?
chewie 🌈
chewie 🌈12mo ago
you can open a new thread describing the problem