my bot cannot be connect to discord
I am doing my first bot, and my first command, but my bot do an error when i execute my command
26 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!can you show that error too
and your code
ok
, but i don't have error, i just have the message Couldn't connect to Discord via RPC: Error: Could not connect comment faire
can you show the error
and did you deploy your commands?
I don't have an error.
or well the message you get
Couldn't connect to discord via RCP: error: could not connect
The application don't work
did you deploy your commands
and that message you get doesnt seem to come from this code
I try
do you get any 'read, logged in as ....' message?
That not come from the code, just my bot and discord I think. Because my bot is online but the command don't reply to my slash
.
if thats all the code you have, i am assuming you do not
in which case
follow that
Ok
I see the success message but the command don't work
define dont work
does the command show up at all?
i can chose the command but she not work
well
in the above code you dont have any code that replies to the command
so yes, it will indeed not work, other than logging the interaction
ok
but how can i fix it
by writing code to reply to it
ok
i assume you followed the guide up until this point, just keep following
ok
I have the message on my discord server
and do you reply to the interaction
Continue the code, bro. All you did is just logging the interaction.
Okk