Replies: 2 comments 5 replies
-
If no one has helped by the time I get home and fix my blue screen loop I have some old code that messed with models that I can reference |
Beta Was this translation helpful? Give feedback.
2 replies
-
Depending on what you want you need to listen to different events. client.on('messageCreate', (message) => {
// getting every button custom id and logging it
message.components.forEach((row) => {
row.components.forEach((btn) => {
console.log(btn.customId);
});
});
// getting specific button custom id ( in this case the first one )
message.components[0].components[0].customId;
}); For Models client.on('interactionModalCreate', (modal) => {
// log the modal id
console.log(modal.customId)
}); You can get a list of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am a python dev i wanted to know how do you guys get
custom id
of modal andcustom id
of componentsPlease help no one tells me
Beta Was this translation helpful? Give feedback.
All reactions