Modal Id question

Hey so Im just looking for some simple explanation on the custom id, so like, whats the job of it specifically, what does it change, what is it needed for, and will the modal like know who submitted the form because of the same id of it or like each person needs different one? Question might be confusing but theres nothing I can do, I dont really understand the customid thing
5 Replies
d.js toolkit
d.js toolkit•5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - ✅ Marked as resolved by OP
ThePedroo
ThePedroo•5mo ago
It helps you identify what component it is For example, the button above. How does the bot know it is to mark it as solved? Because the customId is like mark_solved This explanation fits all customId across all Discord API
Shrewd 💫
Shrewd 💫•5mo ago
isnt this bot like having the event to post this though and on button click the interactioncreate.js just handles this if it detects that customid
ThePedroo
ThePedroo•5mo ago
Yep, the customId is the global identifier
Shrewd 💫
Shrewd 💫•5mo ago
alrighty. thanks