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
d.js toolkit
d.js toolkit2mo ago
- 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 OP
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
i do not get erors in console
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
application doesnt repsond
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
No description
! Milk
! MilkOP2mo ago
u have a link i can deposite it there
d.js docs
d.js docs2mo ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
! Milk
! MilkOP2mo ago
? k
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
yes i got deploy command.js and index.js
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
yes and well orgainzed yes i use config.json too
d.js docs
d.js docs2mo ago
:guide: Creating Your Bot: Command handling read more :guide: Creating Your Bot: Event handling read more
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
https://srcb.in/QpdDjAjVM8 yes i used to run on a host and when test on vsc yes application doesnt respond 16
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
14.0.3
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
it was MODERATE_MEMBERS but when it didnt work i changed it to that
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
i did aswell doesnt work
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
Application doesnt respond
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
bcause theres no eror in console
d.js docs
d.js docs2mo ago
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 more
! Milk
! MilkOP2mo ago
why would i know how
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
what is the issue
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
thats to register the command ok wait
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
ill try that
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
me n chatgpt
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
i sent the code to a bot developer he said no err
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
no clue why doesnt work what question
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
yes
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
so thats why the command not working?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
ok ill debug wait
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
thank you really appreciated and Happy new year
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
! Milk
! MilkOP2mo ago
no thanks
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?