discordjs / guide

The official guide for discord.js, created and maintained by core members of its community.
https://discordjs.guide
MIT License
1.57k stars 2.3k forks source link

Example of component handling #1488

Open mh1723 opened 1 year ago

mh1723 commented 1 year ago

Is your feature request related to a problem? Please describe.

Not a problem, but I dont understand how the component handling should work. Ive dug through every resource I can find and I cant find anything complete enough for me to understand.

Describe the solution you'd like

I 'd love to see how a slash command that uses the different builders, like stringselectmenubuilder, button builder, and then how the interactionCreate and a componentHandler work with the component files. Especially in concert with a dm and not only a message.

Describe alternatives you've considered

Putting everything into one file, which doesnt feel good inside.

Additional notes

I hope I explained it well enough. Im very new and still get rather fuzzy brained when I think about how it works together.