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 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.
EndergamerMC
EndergamerMCOP2y 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
EndergamerMCOP2y ago
EndergamerMC
EndergamerMCOP2y 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 docs2y 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
EndergamerMCOP2y ago
I have read #how-to-get-help and I do not ignore what you write.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
EndergamerMC
EndergamerMCOP2y ago
No? .
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
EndergamerMC
EndergamerMCOP2y 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
EndergamerMCOP2y ago
EndergamerMC
EndergamerMCOP2y 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
chewie2y ago
chewie
chewie2y ago
ghost ping, even worse
EndergamerMC
EndergamerMCOP2y ago
yeah im replying but not pinging
chewie
chewie2y ago
sorry fixed picture
EndergamerMC
EndergamerMCOP2y ago
im not violating the rules, it says dont ping random members, he was helping me before so it isnt random
chewie
chewie2y ago
ghostpinging is against the rules
EndergamerMC
EndergamerMCOP2y ago
says what point
chewie
chewie2y ago
falls under rule 1
EndergamerMC
EndergamerMCOP2y ago
dont see that anywhere
EndergamerMC
EndergamerMCOP2y ago
chewie
chewie2y ago
Nobody likes trolls and obnoxious people.
EndergamerMC
EndergamerMCOP2y ago
im not a troll im just asking for help
chewie
chewie2y ago
just stop ghostpinging people and thats it no need to keep arguing about it
EndergamerMC
EndergamerMCOP2y ago
im just used to that from litterally all other servers im in, they all tell you to ping them
chewie
chewie2y ago
mate I'm talking about ghostpinging and if someone tells you to not ping them, you just dont do it
EndergamerMC
EndergamerMCOP2y 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
chewie2y ago
no if he chooses to look here, then he sees it
EndergamerMC
EndergamerMCOP2y ago
he won't look here anymore, he doesnt want to help me anymore
chewie
chewie2y ago
shrug
EndergamerMC
EndergamerMCOP2y ago
but i am allowed to dm him, right?
chewie
chewie2y ago
if he didn't block you sure
EndergamerMC
EndergamerMCOP2y 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
chewie2y ago
you can open a new thread describing the problem
Want results from more Discord servers?
Add your server