Winnex
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
Thank you so, so much!
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
I've grown blind on this block of code, where do I need to implement the resolve to have it properly close the reason input modal after hitting submit?
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
I have an application that is as, handled by another typescript. Then my code when I hit the deny with reason button opens a modal, prompting for the reason. When I hit submit in that it doesn’t close, and I get the error, but the meaaage with the rejection and added reason is successful, the application embed is also changed to rejected and the content preserved while noting the reason at the end. But the reason modal doesn’t actually close and the error pops up when hitting submit. What line should I add to resolve/properly close the reason modal when I have hit submit.
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
How would i Apply those solutions in the code?
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
I got it all working, but the modal that pops up now, to prompt the interactionuser to submit a reason does not close after hitting submit, instead it waits and gives a "something went wrong, try again" error, but it doesn't fail. The message is sent properly to the applicant's DMs, and the original embed is updated with all the original content of the application + the reason that had been submitted. It just doesn't close the actual modal when submitting a reason, and gives that error, but it is 100% functional and works as intended otherwise.
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
I can't seem to find any documentation on the from() method, how would I apply it in my example here?
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
This is how I build the embed when editing it:
How can I apply the from() method here to retrieve the data from the other file and add them, so the original application data "stays"? I'm a bit lost here 😛
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
This is my listener.ts file:
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
Since it's another file?
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
So here I would need to use the from() method?
19 replies
DIAdiscord.js - Imagine an app
•Created by Winnex on 12/23/2023 in #djs-questions
Editing embeds to preserve original content
The setdescription is handled both places. When the application is first sent in, it sets the embed description to all my fields they should fill out. Then when I hit accept, the second codeblock I sent, it sets the description again, but here it removes the original application content.
19 replies