title: member of undefined
body: <p>I'm about to code a trade bot but I always get the error  he tells me the member does not work with the rest of the way, but a few lines further up it works. lol come explanation</p>
  <p>i cant english xD
  I don't understand why or what I'm doing wrong</p>
  <pre><code>client.on('ready', message =&gt;{
    const member = message.member //here is member defined
    const walletaccess = wallet[message.member.id] **//The error disappears when I deactivate this line**
    var interval = setInterval (function () {
      
  walletaccess.eth += walletaccess.power
  }, 1*1000)
  })
  </code></pre>
  <p>Error:</p>
  <pre><code>(node:12509) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'member' of undefined
  </code></pre>
  <p>If i change it to this</p>
  <pre><code>client.on('ready', message =&gt;{
    const member = message.member
    //const walletaccess = wallet[message.member.id]//The error disappears when I deactivate this line
    var interval = setInterval (function () {
  wallet[message.member.id].eth += wallet[message.member.id].power
  }, 1*1000)
  })
  </code></pre>
  <p>There error is here</p>
  <pre><code>wallet[message.member.id].eth += wallet[message.member.id].power
  </code></pre>