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

ERROR IN DOCS #77

Open
Open
@infinotiver

Description

@infinotiver

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions