Error with ticket

TypeError: slashCommand.run is not a function
at Client.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\src\index.js:74:26)
at Client.emit (node:events:526:35)
at InteractionCreateAction.handle (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@discordjs\ws\dist\index.js:1173:51)
at WebSocketShard.emit (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.onMessage (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@discordjs\ws\dist\index.js:988:14)
TypeError: slashCommand.run is not a function
at Client.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\src\index.js:74:26)
at Client.emit (node:events:526:35)
at InteractionCreateAction.handle (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@discordjs\ws\dist\index.js:1173:51)
at WebSocketShard.emit (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@vladfrangu\async_event_emitter\dist\index.js:282:31)
at WebSocketShard.onMessage (C:\Users\Ohca\Desktop\BotSentencia\node_modules\@discordjs\ws\dist\index.js:988:14)
https://bin.elmundodeniby.com/Xbh6ZTkuWb donde pone ticketsetup es otro archivo.js en la carpeta slashcommands alguien sabe pq me da el error?
Niby Bin
Comparte y crea código de la manera más sencilla con NibyBin!
2 Replies
d.js toolkit
d.js toolkit16mo 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
Syjalo
Syjalo16mo ago
You don't have run function in your command. Basic JavaScript error.
Want results from more Discord servers?
Add your server