I want to send all the members in a server every 10 min a dm in a specific server. And when it send all the members it wil send a complete message in the console.

* But it says member.send is not a function
* And I want also in a specific server

```
if (command === `${prefix}dmall`) {

    var list = bot.guilds.array();
    sendMessage(list);
  }
});

function sendMessage(list) {
  setTimeout(function () {
    for (i = 0; i < list.length; i++) {
      let member = list.splice(Math.floor(Math.random() * list.length), 1);
      member.send("Test")
      list.length = list.length - 1;

      if (list.length = 0)
        console.log("Done")
    }

    sendMessage(list);
  }, 10 * 1000);

}

bot.login(botconfig.token);

```