Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERACTION_NOT_REPLIED Error is Bot Stopped #41

Open
ramazansancar opened this issue Dec 8, 2021 · 5 comments
Open

INTERACTION_NOT_REPLIED Error is Bot Stopped #41

ramazansancar opened this issue Dec 8, 2021 · 5 comments

Comments

@ramazansancar
Copy link

Error Message is:
image

What could be causing the problem?

@andreidimaano
Copy link
Owner

Can you also send how the error occurred - what commands did you type?

Interactions also need to be registered with discord
See Register.js

Also see if your commands are set up correctly
See setcommands function

@ramazansancar
Copy link
Author

Can you also send how the error occurred - what commands did you type?

Interactions also need to be registered with discord See Register.js

Also see if your commands are set up correctly See setcommands function

Unfortunately, I couldn't quite understand how the error occurred :(

I can't run the register command. I get an error when I call it with Node. Other than that, I can't display slash(/) commands inside the server.

@andreidimaano
Copy link
Owner

make sure you exchange the clientid with your bot and that your file structure matches the code

const commandFiles = fs
  .readdirSync("./src2/commands")
  .filter((file) => file.endsWith(".js"));

requires that you have a directory called src2/commands

@andreidimaano
Copy link
Owner

You may need to change the the code to the following:

const commandFiles = fs
  .readdirSync("./src/commands")
  .filter((file) => file.endsWith(".js"));

@ramazansancar
Copy link
Author

Thanks, I'll take a look as soon as I'm available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants