Events listener in discord.ui.View class #715
-
Hello, I'm trying to add listener in discord.ui.View object. like this: class ViewL(ui.View):
def __init__(self):
super().__init__()
...
class Button(ui.Button):
[skipping init]
async def EventHandler(self, event):
if event.type == "reaction_add":
await event.channel.send("d") . I want view to edit itself on reaction add. how can i do this? |
Beta Was this translation helpful? Give feedback.
Answered by
Dorukyum
Jan 18, 2022
Replies: 2 comments
-
Best would be if you visit https://discord.gg/pycord and ask there. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Dorukyum
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bot.wait_for
is what you want.