Hellp i wanted to make a /timeout command but it doesnt work command is deployed
i checked it with a bot developer he saw the code and theres no eror
56 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPUnknown User•2mo ago
Message Not Public
Sign In & Join Server To View
i do not get erors in console
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
application doesnt repsond
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
My bot has been online all day, running fine, I havent made any changes to it, all of a sudden now when i run a command the application doesnt respond but theres no error and the bot seems fine. I tried restarting it, even got a new token but idk wat to do
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
u have a link i can deposite it there
?
k
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
yes
i got deploy command.js
and index.js
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
yes
and well orgainzed
yes
i use config.json too
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
https://srcb.in/QpdDjAjVM8
yes
i used to run on a host
and when test on vsc
yes
application doesnt respond
16
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
14.0.3
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
it was MODERATE_MEMBERS
but when it didnt work i changed it to that
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
i did aswell
doesnt work
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Application doesnt respond
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
bcause theres no eror in console
tag suggestion for @! Milk:
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn morewhy would i know how
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
what is the issue
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
btw here deploy
new SlashCommandBuilder()
.setName("timeout")
.setDescription("Timeout a user in the server.")
.addUserOption((option) =>
option
.setName("target")
.setDescription("The user to timeout.")
.setRequired(true)
)
.addStringOption((option) =>
option
.setName("duration")
.setDescription("The timeout duration (e.g., 1h, 2d).")
.setRequired(true)
)
.addStringOption((option) =>
option
.setName("reason")
.setDescription("The reason for the timeout.")
.setRequired(false)
),
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
thats to register the command
ok
wait
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ill try that
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
me n chatgpt
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
i sent the code to a bot developer
he said no err
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
no clue why doesnt work
what question
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
so thats why the command not working?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ok
ill debug
wait
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
thank you
really appreciated
and Happy new year
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
no
thanks
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View