Interaction type not defined
ReferenceError: InteractionType is not defined
at Object.execute (C:\Users\luizs\Documents\Discord Bot\Events\Interactions\interactionCreate.js:8:29)
at Client.<anonymous> (C:\Users\luizs\Documents\Discord Bot\Handlers\eventHandler.js:25:63)
at Client.emit (node:events:513:28)
at InteractionCreateAction.handle (C:\Users\luizs\Documents\Discord Bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\luizs\Documents\Discord Bot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\luizs\Documents\Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (C:\Users\luizs\Documents\Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:489:22)
at WebSocketShard.onMessage (C:\Users\luizs\Documents\Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10)
at callListener (C:\Users\luizs\Documents\Discord Bot\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (C:\Users\luizs\Documents\Discord Bot\node_modules\ws\lib\event-target.js:209:9)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Import it from discord.js
Autocompleteinteraction?
InteractionType...
k
thx
still not defined
same error
What did you do
You didnt do what I said
I told you to import
InteractionType