aa battery
Explore posts from servers❔ Just got started with leetcode after a year of learning, I need some help...
So the title says it all I guess, I started with leetcode after around a year with learning and I started away with one of its problems. It took me two hours to finally get it right but my code felt so redundant and long for such a simple problem. Can I get some feedback on how to make it more efficient? Thanks
So here is what I had after I was done (it was the two sum problem)
25 replies
DIAdiscord.js - Imagine an app
•Created by aa battery on 9/16/2023 in #djs-questions
Cannot edit interaction after modal input
Ok so here is my problem, I want to achieve something like so:
Step 1: send interaction with button
Step 2: user clicks button
Step 3: modal shows and user enters stuff
Step 4: after submit edit the original interaction
Problem is, editReply() and updateMessage() doesn't let me do that (replying to the modal works) and discord api returns with a "Unknown Webhook" error:
Is there a way to achieve step 4 as defined?
52 replies
DIAdiscord.js - Imagine an app
•Created by aa battery on 9/14/2023 in #djs-questions
Unable to use updateMessage() on a message that has already used updateMessage()
So I have this modal that when it is submitted, it modifies the message that had the button to show the modal to say "Loading..." while I have some stuff running, but then if I want to use updateMessage() on that message it wont work and would give me this:
8 replies
DIAdiscord.js - Imagine an app
•Created by aa battery on 9/14/2023 in #djs-questions
Error running a select menu inside a modal (not sure if that's really the issue)
I have this action row with a text box and a select menu which i put inside a modal that is activated with a button:
5 replies