mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 12:35:53 +00:00
Added shortcut to users from channel class
This commit is contained in:
parent
2f9585a6b9
commit
ca1b4bdf0e
2 changed files with 18 additions and 0 deletions
|
|
@ -82,6 +82,16 @@ var Channel = (function () {
|
|||
get: function get() {
|
||||
return false;
|
||||
}
|
||||
}, {
|
||||
key: "users",
|
||||
get: function get() {
|
||||
return this.server.members;
|
||||
}
|
||||
}, {
|
||||
key: "members",
|
||||
get: function get() {
|
||||
return this.server.members;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Channel;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,14 @@ class Channel {
|
|||
get isPrivate(){
|
||||
return false;
|
||||
}
|
||||
|
||||
get users(){
|
||||
return this.server.members;
|
||||
}
|
||||
|
||||
get members(){
|
||||
return this.server.members;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Channel;
|
||||
Loading…
Reference in a new issue