Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

ERROR IN DOCS #77

Open
infinotiver opened this issue Dec 7, 2021 · 0 comments
Open

ERROR IN DOCS #77

infinotiver opened this issue Dec 7, 2021 · 0 comments

Comments

@infinotiver
Copy link

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant