Component API Reference#
- class flare.components.base.CallbackComponent(*args, **kwargs)[source]#
Bases:
Component
[MessageActionRowBuilder
],SupportsCallback
[MessageContext
],SupportsCookie
,Dataclass
An abstract class that all components with callbacks are derive from.
- async static from_partial(component: PartialComponent) CallbackComponent [source]#
Build a flare component from hikari.PartialComponent.
- Parameters:
component – A partial component. The component type must be hikari ComponentType.BUTTON or hikari.ComponentType.SELECT_MENU.
- Returns:
A component.
- Raises:
SerializerError – The component could not be deserialized.