Kenryuakuma
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 6/12/2024 in #djs-questions
Button Interaction Help
That is the code. I have been scratching my head for a freaking whole day without success on how to implement it. firstInputSet, secondinputSet and thirdInputSet are the respective modal ID and I have three modals for each button and additional two buttons are cancel and submit. Now what I would like to do is once each modal is submitted, the interface button that triggered the modal will changes its own label. My solution is to recreate all five buttons and then update the interface with interaction.reply(). However it is awkward and besides it won't work at all. Since there is no way to retain state, I have no way of knowing how to implement it. If I use global variables, then when two or more users use it, it will be a big mess as one variable is changed by multiple users.
10 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 6/12/2024 in #djs-questions
Button Interaction Help
Cuz I am not that good at coding
10 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 6/12/2024 in #djs-questions
Button Interaction Help
I will send u the code tomorrow lol
10 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 6/12/2024 in #djs-questions
Button Interaction Help
Sorry would there be some code that I can see? Thx
10 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 6/12/2024 in #djs-questions
Button Interaction Help
Yup. I wanna to change text and color.
10 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 6/12/2024 in #djs-questions
Button Interaction Help
Well...How can we do that. The problem is that I have created a few buttons in one interaction event and then I want to update those buttons in another interaction event. One interaction event is for slash command, another interaction event is for modal submission because as far as I know we can only change things within the scope of that event where the things are created in and we cannot change things outside of the events where things are not really defined in them.
10 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
Thanks here is the second file
https://pastebin.com/T1Ey7VkA
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
Those are required values. But thanks
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
Like I said bro, I am not a professional or a real coder, I am still learning lol please bear with me thanks.
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
Yup
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
sure
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
The option type I put in is a string. type: ApplicationCommandOptionType.String,
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
If I put like a few sentences, it works fine.
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
brother
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
Yup
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
60 replies
DIAdiscord.js - Imagine an app
•Created by Kenryuakuma on 5/30/2024 in #djs-questions
Build each user a unique sets of buttons
I see. For all Embed right?
60 replies