support-bot-with-feedback-form icon indicating copy to clipboard operation
support-bot-with-feedback-form copied to clipboard

TypeError: interaction.isCommand is not a function

Open enemyalert opened this issue 1 year ago • 0 comments

every time i use "create" command, it shows this error

// using slash command error

node:events:505
      throw er; // Unhandled 'error' event
      ^

TypeError: interaction.isCommand is not a function
    at module.exports (/home/runner/support-bot-with-feedback-form/handlers/index.js:10:26)
    at Client.<anonymous> (/home/runner/support-bot-with-feedback-form/index.js:64:8)
    at Client.emit (node:events:527:28)
    at InteractionCreateAction.handle (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/actions/InteractionCreate.js:81:12)
    at Object.module.exports [as INTERACTION_CREATE] (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/WebSocketShard.js:481:22)
    at WebSocketShard.onMessage (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/WebSocketShard.js:321:10)
    at WebSocket.onMessage (/home/runner/support-bot-with-feedback-form/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:527:28)
Emitted 'error' event on Client instance at:
    at emitUnhandledRejectionOrErr (node:events:384:10)
    at processTicksAndRejections (node:internal/process/task_queues:85:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-07-07T12_42_55_638Z-debug.log
exit status 1

// also using prefix command

TypeError: msg.channel.isDM is not a function
    at Client.<anonymous> (/home/runner/support-bot-with-feedback-form/index.js:70:18)
    at Client.emit (node:events:527:28)
    at MessageCreateAction.handle (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/actions/MessageCreate.js:23:14)
    at Object.module.exports [as MESSAGE_CREATE] (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/WebSocketShard.js:481:22)
    at WebSocketShard.onMessage (/home/runner/support-bot-with-feedback-form/node_modules/discord.js/src/client/websocket/WebSocketShard.js:321:10)
    at WebSocket.onMessage (/home/runner/support-bot-with-feedback-form/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:527:28)
    at Receiver.receiverOnMessage (/home/runner/support-bot-with-feedback-form/node_modules/ws/lib/websocket.js:1169:20)
Emitted 'error' event on Client instance at:
    at emitUnhandledRejectionOrErr (node:events:384:10)
    at processTicksAndRejections (node:internal/process/task_queues:85:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-07-07T12_46_35_263Z-debug.log
exit status 1

enemyalert avatar Jul 07 '22 12:07 enemyalert