List Users Done.
This commit is contained in:
parent
a1f303115f
commit
2332ec38f9
|
@ -60,17 +60,20 @@ Command.addCommand(
|
||||||
.join("\n- ")
|
.join("\n- ")
|
||||||
);
|
);
|
||||||
} else if (msg.args[1] == "users") {
|
} else if (msg.args[1] == "users") {
|
||||||
var users = getUsers();
|
var user = getUsers();
|
||||||
return (
|
var users = "";
|
||||||
"Users: "+await (await users).count+"\n- " +
|
((await user).users).forEach(u => {
|
||||||
(await users).users.forEach(async user => {
|
users += `\n- [${u.id}]: ${u.name}`
|
||||||
`\n- ${user.id}: ${user.name}`
|
|
||||||
})
|
})
|
||||||
);
|
|
||||||
|
return (
|
||||||
|
"Users: "+await (await user).count + users
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return "list <channels, users>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return "list <channels, users>";
|
return "list <channels, users>";
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue