芙檩
DIAdiscord.js - Imagine an app
•Created by 芙檩 on 7/1/2023 in #djs-questions
Embedded errors
"discord.js": "^14.11.0"
8 replies
DIAdiscord.js - Imagine an app
•Created by 芙檩 on 7/1/2023 in #djs-questions
Embedded errors
I got this error
C:\Users\Alice\Desktop\Alice v1.1 Test bot\alice.js:94
const embed = new MessageEmbed()
^
TypeError: MessageEmbed is not a constructor
at Client.<anonymous> (C:\Users\Alice\Desktop\Alice v1.1 Test bot\alice.js:94:17)
at Client.emit (node:events:513:28)
at module.exports [as GUILD_MEMBER_ADD] (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\discord.js\src\client\websocket\handlers\GUILD_MEMBER_ADD.js:17:14)
at WebSocketManager.handlePacket (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:354:31)
at WebSocketManager.<anonymous> (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:238:12)
at WebSocketManager.emit (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.<anonymous> (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@discordjs\ws\dist\index.js:1103:51)
at WebSocketShard.emit (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.onMessage (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@discordjs\ws\dist\index.js:938:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.16.1
C:\Users\Alice\Desktop\Alice v1.1 Test bot\alice.js:94
const embed = new MessageEmbed()
^
TypeError: MessageEmbed is not a constructor
at Client.<anonymous> (C:\Users\Alice\Desktop\Alice v1.1 Test bot\alice.js:94:17)
at Client.emit (node:events:513:28)
at module.exports [as GUILD_MEMBER_ADD] (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\discord.js\src\client\websocket\handlers\GUILD_MEMBER_ADD.js:17:14)
at WebSocketManager.handlePacket (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:354:31)
at WebSocketManager.<anonymous> (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:238:12)
at WebSocketManager.emit (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.<anonymous> (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@discordjs\ws\dist\index.js:1103:51)
at WebSocketShard.emit (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.onMessage (C:\Users\Alice\Desktop\Alice v1.1 Test bot\node_modules\@discordjs\ws\dist\index.js:938:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.16.1
8 replies