#Could you trigger a command function with a button like interaction create does?
7 messages · Page 1 of 1 (latest)
You'd have to give it a custom id. It'll trigger the interactionCreate event and you'll have to check if its a button interaction and then execute the right command based on the custom id
as I said, yes you can do that
You can create a button handler for example in another file that you can use whenever the interaction is a button, that's how I do it
I have one on my bot, on my GitHub if you want an example 🤷♂️