Voice States in READY packet now processed

Now there is full watching and coverage of voice states
This commit is contained in:
Amish Shah
2015-12-26 15:54:45 +00:00
parent 9c0e20947c
commit 9d97dfc95a
3 changed files with 61 additions and 18 deletions

View File

@@ -34,6 +34,12 @@ client.on("message", msg => {
client.destroy();
}
if (msg.content === "who tf is speaking") {
for (var chan of msg.channel.server.channels.getAll("type", "voice")) {
msg.channel.send(`${chan} : ${chan.speaking}`);
}
}
if(msg.content === "replyme"){
msg.reply("hi");
}