π•Ώπ–†π–˜π–
π•Ώπ–†π–˜π–
DIAdiscord.js - Imagine an app
Created by π•Ώπ–†π–˜π– on 6/16/2024 in #djs-questions
Get input from the user
Update: I solved that problem that way: I set a flag for identifying when I want to listen for a input of the user. Then using messageCreate event, I checked if any message is starting with ? and the flag is PromptingUser for example, set the flag to Idle and emit an event with the prompt of the user. On another place I created an once listener for handling it, and in it I set it to off when done.
14 replies
DIAdiscord.js - Imagine an app
Created by π•Ώπ–†π–˜π– on 6/16/2024 in #djs-questions
Get input from the user
I say they look terrible not in general but specifically for my use case which is for updating specific properties on a doc of a mongodb db - for each property I need to make a subcommand
14 replies
DIAdiscord.js - Imagine an app
Created by π•Ώπ–†π–˜π– on 6/16/2024 in #djs-questions
Get input from the user
yeah ik, it's just looking terrible, wanted to see if there is any other option
14 replies
DIAdiscord.js - Imagine an app
Created by π•Ώπ–†π–˜π– on 6/16/2024 in #djs-questions
Get input from the user
I want the input type to be different
14 replies
DIAdiscord.js - Imagine an app
Created by π•Ώπ–†π–˜π– on 6/16/2024 in #djs-questions
Get input from the user
yes
14 replies