Discord.py trying to found out all the "bot.wait_for" type str like "message" and "button_click"

Viewed 466

I just started making a discord bot in python and I can't found what exactly I should write here (see the code), if anyone can show me a table with all the possibility thanks. ( I'm mostly looking for one that wait a select option ). Exemple:

#What I know:
res = await bot.wait_for("button_click")
res = await bot.wait_for("message")
#What I want to do:
res = await bot.wait_for("when a option is select")

Right know I only know "message", "button_click", is there a way to create a custom wait_for ? Thanks for your help.

1 Answers

Check out discord.py Event Reference

It lists every possible event in vanilla discord.py.

But given you're using discord-components they add additional events, namely: "button_click" and "select_option". 2

You can check out usage of "select_option" in lib's examples

Related