dislash.py icon indicating copy to clipboard operation
dislash.py copied to clipboard

ERROR IN DOCS

Open infinotiver opened this issue 4 years ago • 0 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

infinotiver avatar Dec 07 '21 07:12 infinotiver