You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Description
Just passed that tutorial and found several missing instructions:
InteractionResponseFlags
,MessageComponentTypes
to list of the entities being imported fromdiscord-interactions
andButtonStyleTypes
at step 4.id
from request body. You have to add id to the following listconst { type, id, data } = req.body;
const activeGames = {};
to declare games storage variable. (step 4)return
statement after successfulInteractionType.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
The text was updated successfully, but these errors were encountered: