ERROR IN DOCS
infinotiver opened this issue · comments
Here is what I found in the docs of dislash.py
def check(inter):
# inter is instance of MessageInteraction
# read more about it in "Objects and methods" section
if inter.author == ctx.author
# Wait for a menu click under the message you've just sent
inter = await msg.wait_for_dropdown(check)
# Tell which options you received
labels = [option.label for option in inter.select_menu.selected_options]
await inter.reply(f"Your choices: {', '.join(labels)}")
It is noticible that there is no colon after if inter.author ==ctx.author nor the indentation level is equal