You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a design flaw than anything else...
Right now, components aren't instantiated when passed to a Command class, the component handler actually is the one who calls it new ButtonComponent(), meaning that you can't pass in any custom data to the constructor.
Carbon gives the illusion that you can, because you can pass it when you instantiate it when you call it within a reply() function (e.g. to serialize), but it doesn't work within Carbon itself.
The text was updated successfully, but these errors were encountered:
This is more of a design flaw than anything else...
Right now, components aren't instantiated when passed to a Command class, the component handler actually is the one who calls it
new ButtonComponent()
, meaning that you can't pass in any custom data to the constructor.Carbon gives the illusion that you can, because you can pass it when you instantiate it when you call it within a reply() function (e.g. to serialize), but it doesn't work within Carbon itself.
The text was updated successfully, but these errors were encountered: