Skip to content

Error in the website guide #74

@gemiro-mcl

Description

@gemiro-mcl

Not really an error in the github repo, but there is an error in the discord dev site guide for building your first app: in the Handling button interactions and Handling select menu interactions code snippets there's no return before the last curly brace. I noticed it because as soon as I clicked the button on the discord server, the terminal in which I run npm run start gave me the following error: ERR_HTTP_HEADERS_SENT

I checked the example code in example/app.js and there is this line of code with return. By adding it now everything works, so please correct the website guide! Thank you!

edit: in example/app.js line 180 contains the missing return

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions