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

Persistent buttons #127

Open
davidhtien opened this issue Feb 1, 2024 · 1 comment
Open

Persistent buttons #127

davidhtien opened this issue Feb 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@davidhtien
Copy link

It seems like this is possible in the full python Discord api but I was wondering if there'd be a way to leverage custom IDs and interaction with a database to allow for buttons to always perform the same action no matter what.

@davidhtien davidhtien added the enhancement New feature or request label Feb 1, 2024
@breqdev
Copy link
Owner

breqdev commented Feb 3, 2024

Could you elaborate a bit more on what you mean here?

If you're asking about old buttons not working anymore once you redeploy the app, you should be able to pass a string to the custom_id parameter to @discord.custom_handler(), as described in the wiki.

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

No branches or pull requests

2 participants