Callback System
The callback system aims to be similar to the InteractionHandler but in a more Low Code manner, requiring less coding.
It is important to know that if the bot is restarted, the callback provided in the component may no longer be valid until the component is generated again, so it may not be useful for all situations.
Exemple:
Result:
You can notice that the only change we have in the button is that the callback attribute receives a function. This function will be called when the button is clicked, and we can manipulate the parameters of this function as it is called.
Last updated