Weeb-Devs/Laffey

When I do /play foo with slash commands

SysMath opened this issue · 0 comments

Lavalink Version:
Version: 3.4
Build: 1257
Build time: 26.10.2021 14:18:37 UTC
Branch master
Commit: a364833
Commit time: 26.10.2021 14:15:20 UTC
JVM: 11.0.15
Lavaplayer 1.3.96-original

Java Version:
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-post-Debian-1deb10u1, mixed mode, sharing)

Laffey Version: 2.0.0-dev
NodeJS Version: 16.X

Error:
node:events:505
throw er; // Unhandled 'error' event
^
TypeError: ctx.isCommand is not a function
at Object.execute (/home/container/src/events/interactionCreate.js:7:18)
at Laffey. (/home/container/src/modules/eventHandler.js:16:63)
at Laffey.emit (node:events:527:28)
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:81:12)
at Object.module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:476:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:320:10)
at WebSocket.onMessage (/home/container/node_modules/discord.js/node_modules/ws/lib/event-target.js:199:18)
at WebSocket.emit (node:events:527:28)
at Receiver.receiverOnMessage (/home/container/node_modules/discord.js/node_modules/ws/lib/websocket.js:1169:20)
at Receiver.emit (node:events:527:28)
at Receiver.dataMessage (/home/container/node_modules/discord.js/node_modules/ws/lib/receiver.js:528:14)
at Receiver.getData (/home/container/node_modules/discord.js/node_modules/ws/lib/receiver.js:446:17)
at Receiver.startLoop (/home/container/node_modules/discord.js/node_modules/ws/lib/receiver.js:148:22)
at Receiver._write (/home/container/node_modules/discord.js/node_modules/ws/lib/receiver.js:83:10)
Emitted 'error' event on Laffey instance at:
at emitUnhandledRejectionOrErr (node:events:384:10)
at processTicksAndRejections (node:internal/process/task_queues:85:21)