#Question about Component and Modal Event

1 messages · Page 1 of 1 (latest)

marble isle
#

Lets say that I have an on_component event as well as component_callback. Will the components that will already be listened with a component_callback still be triggered in on_component?

rotund eagleBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

terse oracle
#

try it and see

#

but normally yes

marble isle
#

Is there way to check if the there is a already a component callback for a component in on_component?

willow dagger
#

i would suggest avoiding overlap in general, but technically you could use the bots internal list of bot._component_callbacks and bot._regex_component_callbacks

#

though, as you may be able to tell from the underscores, youre not really meant to access these

willow dagger
marble isle
#

Thank you so much, I will check it out!