Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: interaction.isCommand is not a function #1

Open
enemyalert opened this issue Jul 7, 2022 · 0 comments
Open

TypeError: interaction.isCommand is not a function #1

enemyalert opened this issue Jul 7, 2022 · 0 comments

Comments

@enemyalert
Copy link

enemyalert commented Jul 7, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant