Components
Components are used to create interactive elements in your bot, such as buttons, select menus, and text inputs.
When you create a component, you will need to pass it to the components
property of the Command
class. This will allow it to be registered with the bot as a handler.
When you pass it, make sure you aren't instantiating it, but rather just passing the class itself.
If you don't want to automatically register the components, you can do so manually by setting the autoRegister
option to false
in the client options.
Last updated on