D
D
danilaketler2019-12-21 21:55:46
Node.js
danilaketler, 2019-12-21 21:55:46

NodeJS | Bot | Error with value. How to fix?

Bracket expansion problem (I guess).
Error line - if(message.user.transport.car) text += `⠀Car: ${cars[message.user.transport.car - 1].name}\n`;
Error : Cannot read property 'name' of undefined

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question