Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaws in "Build your First Discord App" tutorial #7283

Open
mak22223 opened this issue Nov 25, 2024 · 0 comments
Open

Flaws in "Build your First Discord App" tutorial #7283

mak22223 opened this issue Nov 25, 2024 · 0 comments

Comments

@mak22223
Copy link

Description

Just passed that tutorial and found several missing instructions:

  • there is no mention that at step 3 you have to add InteractionResponseFlags, MessageComponentTypes to list of the entities being imported from discord-interactions and ButtonStyleTypes at step 4.
  • no mention that you have to extract id from request body. You have to add id to the following list const { type, id, data } = req.body;
  • no mention to add const activeGames = {}; to declare games storage variable. (step 4)
  • lack of return statement after successful InteractionType.MESSAGE_COMPONENT request processing. If you follow the tutorial every such request will additionally result into error 400 response.

Still there is an example directory with correct code that you can refer to. Though in the guide there is no metion of it and it's kinda confusing for a begineer that you follow the guide, that explains every step, but you have to look at the example and search for differences.

Steps to Reproduce

Follow the guide from the scratch

Expected Behavior

The guide should contain all necessary steps and explanations to write an app following it

Current Behavior

Following the guide isn't enough for application to run correctly

Screenshots/Videos

No response

Client and System Information

Windows 10, node.js 22.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants