Embed with slash command

I want that embed command will take embed info from embed.js file but not from index.js It is possible?
2 Replies
d.js toolkit
d.js toolkit10mo 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!
BlackInk
BlackInk10mo ago
set function and return embed and button like uh...return { embed: embed, buttons: button }this? and require your embed.js file