List Users Done.

This commit is contained in:
Daniel 2024-02-03 21:14:26 -03:00
parent a1f303115f
commit 2332ec38f9
1 changed files with 10 additions and 7 deletions

View File

@ -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();
var users = "";
((await user).users).forEach(u => {
users += `\n- [${u.id}]: ${u.name}`
})
return ( return (
"Users: "+await (await users).count+"\n- " + "Users: "+await (await user).count + users
(await users).users.forEach(async user => { )
`\n- ${user.id}: ${user.name}` } else {
}) return "list <channels, users>";
);
} }
} else { } else {
return "list <channels, users>"; return "list <channels, users>";
} }
}) })
); );