question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

:sparkles: API For interacting with Message Components

See original GitHub issue

Mostly opening this issue so I can get it in the todo list. I don’t have a very good idea of what the API would be but It will probably use Client.wait_for/Client.loop_for so keep those in mind.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Lunarmagpiecommented, Nov 30, 2021

I’ve been thinking about an API like this


@command
async def some_command(self, ...):
    return a button with id "1234"

@button("1234")
async def on_button_pressed(self, interaction, ...)
    pass

It looks a little bloated but I thought about it and if people do one command per cog it will be super easy to read since the indentation is low. If someone really hates it they can manually do stuff with Client.loop_for anyway but that would suck lol.

0reactions
Lunarmagpiecommented, Dec 30, 2021

i forgor 💀 to close this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sparkle API — sparkle 1.0.0 documentation
Sparkle API ¶. The program can be divided into two parts: The GUI which interacts with the user to get inputs and presents...
Read more >
Message Components - Javacord
Components are interactive elements like buttons or hidden elements like ... You can add them to a message and interact with users in...
Read more >
Changes to message objects on the way to support WYSIWYG
Messages authored by users and sent to your app via APIs like Events API, chat.postMessage , and conversations.history will expand to more ...
Read more >
rreboucas/sparkle-dx - GitHub
Example Lightning App with a set of Generic Responsive Lightning Components capable of loading and interacting with data from any Salesforce Object.
Read more >
Intro to Vertex Pipelines - Google Codelabs
... Use pre-built components for interacting with Vertex AI services, provided through the google_cloud_pipeline_components library ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found