Skip to content

Button press out of cache. #1029

Closed Answered by krittick
ManuelRoyBo asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried using persistent views for the first question? https://github.com/Pycord-Development/pycord/blob/master/examples/views/persistent.py

For the second, you can use the on_interaction event, or (preferably) just use the interaction variable declared in the button callback. I'd also recommend either using the button decorator or subclassing Button instead of directly assigning to the callback as it gives you more flexibility. E.g. https://github.com/Pycord-Development/pycord/blob/master/examples/views/confirm.py

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ManuelRoyBo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants