Skip to content

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

Open
@mak22223

Description

@mak22223

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions