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 toolkit14mo 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
Danial14mo ago
It's just a static method, remove the new before EmbedBuilder
!
!OP14mo ago
wait, one moment thanks it worked!
Want results from more Discord servers?
Add your server