help fix error

my bot was working a couple of days ago, now I decided to try to run it to write code, but when I wrote the command / mute in the discord, it started to give this error, although nothing happened to the bot for a couple of days
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! - Marked as resolved by staff
Martoz
MartozOP10mo ago
D:\discordmdr\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355
PacketHandlers[packet.t](this.client, packet, shard);
^
TypeError: PacketHandlers[packet.t] is not a function
at WebSocketManager.handlePacket (D:\discordmdr\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (D:\discordmdr\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (D:\discordmdr\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.<anonymous> (D:\discordmdr\node_modules\@discordjs\ws\dist\index.js:1173:51)
at WebSocketShard.emit (D:\discordmdr\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.onMessage (D:\discordmdr\node_modules\@discordjs\ws\dist\index.js:988:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v21.5.0
D:\discordmdr\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355
PacketHandlers[packet.t](this.client, packet, shard);
^
TypeError: PacketHandlers[packet.t] is not a function
at WebSocketManager.handlePacket (D:\discordmdr\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (D:\discordmdr\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (D:\discordmdr\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.<anonymous> (D:\discordmdr\node_modules\@discordjs\ws\dist\index.js:1173:51)
at WebSocketShard.emit (D:\discordmdr\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.onMessage (D:\discordmdr\node_modules\@discordjs\ws\dist\index.js:988:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v21.5.0
Want results from more Discord servers?
Add your server