new EmbedBuilder().from(...) is not a function - since when?

Error:
TypeError: (intermediate value).from is not a function
at Object.execute (C:\Users\truly\Documents\src\events\interactionCreate.js:89:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:398:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v18.18.2
TypeError: (intermediate value).from is not a function
at Object.execute (C:\Users\truly\Documents\src\events\interactionCreate.js:89:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:398:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v18.18.2
code:https://sourceb.in/BFauv4BGUl new EmbedBuilder.from(...) is also not working
3 Replies
d.js toolkit
d.js toolkit8mo 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
Danial
Danial8mo ago
It's just a static method, remove the new before EmbedBuilder
᲼каан
᲼каан8mo ago
wait, one moment thanks it worked!