mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
added .users as well as .members in Server class
This commit is contained in:
@@ -165,6 +165,11 @@ var Server = (function () {
|
||||
get: function get() {
|
||||
return this.client.getUser("id", this.ownerID);
|
||||
}
|
||||
}, {
|
||||
key: "users",
|
||||
get: function get() {
|
||||
return this.members;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Server;
|
||||
|
||||
@@ -50,6 +50,10 @@ class Server {
|
||||
return this.client.getUser("id", this.ownerID);
|
||||
}
|
||||
|
||||
get users() {
|
||||
return this.members;
|
||||
}
|
||||
|
||||
// get/set
|
||||
getChannel(key, value) {
|
||||
for (var channel of this.channels) {
|
||||
|
||||
Reference in New Issue
Block a user