Coflnet / discord-bot-node

GNU Affero General Public License v3.0
3 stars 6 forks source link

profitAfterSellCommand Fails #72

Closed Flou21 closed 2 years ago

Flou21 commented 2 years ago

The profitAfterSellCommands fails for multiple users. Example: PhanteonOP

This is the error message:

TypeError: Cannot read properties of undefined (reading 'length')
/commands/profitAfterSellCommand.js:45:74
at Array.forEach (<anonymous>)
at Object.execute (/commands/profitAfterSellCommand.js:44:32)
runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Client.<anonymous> (/bot.js:65:9)

@tentamens or @matthias-luger can anyome fix this?