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!
35 Replies
• 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.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
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
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?
I have read #how-to-get-help and I do not ignore what you write.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No?
.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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
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
https://thehairy.me/share/HEmGiHl.png glad we dont have logs
ghost ping, even worse
yeah im replying but not pinging
sorry fixed picture
im not violating the rules, it says dont ping random members, he was helping me before so it isnt random
ghostpinging is against the rules
says what point
falls under rule 1
dont see that anywhere
Nobody likes trolls and obnoxious people.
im not a troll
im just asking for help
just stop ghostpinging people and thats it
no need to keep arguing about it
im just used to that from litterally all other servers im in, they all tell you to ping them
mate
I'm talking about ghostpinging
and if someone tells you to not ping them, you just dont do it
yea ok ill keep that in mind for the future
am I allowed to ping him once so that he reads my apology?
no
if he chooses to look here, then he sees it
he won't look here anymore, he doesnt want to help me anymore
but i am allowed to dm him, right?
if he didn't block you
sure
can we then delete our messages so if someone decides to help me he doesn't have to scroll all the way up?
you can open a new thread describing the problem