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