Replies: 2 comments 7 replies
-
You can remove the button from the view with view.remove_item() or remove it from If you want to remove the entire view, you can simply passing |
Beta Was this translation helpful? Give feedback.
7 replies
-
Resolved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my Buttons.py
This is another file called Bot.py and I am importing this, and running it in giveaway function of nextcord.Client.
When someone clicks button, I log their userid via on_interaction() function checking bunch of message ids etc and finally adding it to a class variable (joined_users which is a list) of nextcord.Client. Now, I after x time lets say 600 seconds, I want to edit both embed to have list of joined users and view to remove the button (not disable it). I am not talking about on_timeout or any methods to acheive it in nextcord.ui.View class. I want to get callback with
interaction
as variable on nextcord.Client such that I can edit both embeds and views. How I can get such callback similar to on_interaction() of nextcord.ClientIf thats not possible, is there any hacky way of doing what I want like passing embed and views to nextcord.ui.View, running on_timeout function then returning it to nextcord.Client then re-editing the message to include without button
Beta Was this translation helpful? Give feedback.
All reactions