flask-discord-interactions icon indicating copy to clipboard operation
flask-discord-interactions copied to clipboard

Persistent buttons

Open davidhtien opened this issue 1 year ago • 1 comments

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 avatar Feb 01 '24 21:02 davidhtien

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.

breqdev avatar Feb 03 '24 00:02 breqdev