4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
but i confirm it's a role id
yeah
okay maybe there's something wrong with my json file
i copied it from another json it works
but how could it reply message to another channel while using interaction
Read into how to require and read the data from a json file - that isn’t really DiscordJS related.
Pretty sure you cannot do const { something } = require(..json)
Const something = require(…json) Would be correct.
Then you gotta grab whatever you want from something like
Something.CCroleId (CCroelId)
❤️the problem has solved