ComponentRegistry
Component registry, keeps track of components and handles incoming interaction events, dispatching as needed to registered component actions.
Properties
Mapping of registered modal IDs to their form objects.
Scheduler that can be used to schedule timeout tasks. All ComponentContainer objects use this scheduler.
Mapping of registered component IDs to their components.
Functions
Dispatch a ButtonInteractionCreateEvent to its button component object.
Dispatch a ModalSubmitInteractionCreateEvent to its modal form object.
Dispatch a SelectMenuInteractionCreateEvent to its select (dropdown) menu component object.
Register a component. Only components with IDs need registering.
Register a modal form.
Unregister a registered component.
Unregister a registered component, by ID.
Unregister a registered modal form.
Unregister a registered modal form, by ID.