Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ideas #106

Open
circuitsacul opened this issue Mar 28, 2023 · 2 comments
Open

Ideas #106

circuitsacul opened this issue Mar 28, 2023 · 2 comments

Comments

@circuitsacul
Copy link
Member

Component.get_from_raw

Like Component().get_from(), but for raw components. Example usage:

class Button(flare.Button, ...):
    ...

button = Button.get_from_raw(message.components)
# message: hikari.Message
# button: Button | None

Add get_components to ModalContext

ModalContext.interaction.message.components already exists, which afaik is all you need for a get_components method which should mirror MessageContext.get_components.

Add get_component(x, y)

It would be helpful to be able to get a specific component and not load all of them

@circuitsacul
Copy link
Member Author

@Lunarmagpie
Copy link
Collaborator

All of these should be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants