mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +00:00
added .users as well as .members in Server class
This commit is contained in:
parent
c4d9405f64
commit
c904bdb3c3
2 changed files with 9 additions and 0 deletions
|
|
@ -165,6 +165,11 @@ var Server = (function () {
|
||||||
get: function get() {
|
get: function get() {
|
||||||
return this.client.getUser("id", this.ownerID);
|
return this.client.getUser("id", this.ownerID);
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: "users",
|
||||||
|
get: function get() {
|
||||||
|
return this.members;
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
return Server;
|
return Server;
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,10 @@ class Server {
|
||||||
return this.client.getUser("id", this.ownerID);
|
return this.client.getUser("id", this.ownerID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get users() {
|
||||||
|
return this.members;
|
||||||
|
}
|
||||||
|
|
||||||
// get/set
|
// get/set
|
||||||
getChannel(key, value) {
|
getChannel(key, value) {
|
||||||
for (var channel of this.channels) {
|
for (var channel of this.channels) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue