mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Added shortcut to users from channel class
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user