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: Cannot read properties of undefined (reading 'set') #8

Open
Avi2427 opened this issue Jun 10, 2023 · 5 comments
Open

TypeError: Cannot read properties of undefined (reading 'set') #8

Avi2427 opened this issue Jun 10, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Avi2427
Copy link

Avi2427 commented Jun 10, 2023

(node:539) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ready listeners added to [Client]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
(node:539) DeprecationWarning: MessageEmbed#addField is deprecated and will be removed in the next major update. Use MessageEmbed#addFields instead.
TypeError: Cannot read properties of undefined (reading 'set')
at Object.execute (/home/runner/ticket-bot/handlers/commands/commands.js:16:29)
at Client. (/home/runner/ticket-bot/bot.js:71:54)
at Client.emit (node:events:525:35)
at WebSocketManager.triggerClientReady (/home/runner/ticket-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:387:17)
at WebSocketManager.checkShardsReady (/home/runner/ticket-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:370:10)
at WebSocketShard. (/home/runner/ticket-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:200:16)
at WebSocketShard.emit (node:events:513:28)
at WebSocketShard.checkReady (/home/runner/ticket-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:181:12)
at module.exports [as READY] (/home/runner/ticket-bot/node_modules/discord.js/src/client/websocket/handlers/READY.js:26:9)
at WebSocketManager.handlePacket (/home/runner/ticket-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:354:31)

@muralianand12345
Copy link
Owner

It seems like that you have some problems with the slash commands. Make sure 2 things!

  1. Not to use same command names for both slash and message commands
  2. Make sure you have a valid slash command configuration.

@Avi2427
Copy link
Author

Avi2427 commented Jun 12, 2023

i've checked im just used your full src jus edited config files but im getting this error idk that becoz im using win to run the bot

@muralianand12345 muralianand12345 added the bug Something isn't working label Jun 12, 2023
@muralianand12345
Copy link
Owner

I'll fix it in next update.

@muralianand12345 muralianand12345 self-assigned this Jun 12, 2023
@cowardtv
Copy link

happens to me as well... just launched the bot and i cant use anything. i suggest to fix this and give some tutorial on this bot its very complicated and no understanding exactcly what each thing does and how it works

@muralianand12345
Copy link
Owner

Yes this code is not friendly to edit and use. Just let me know what all the features you are expecting here or I'll just simplify the ticket bot code alone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants