permissions rename :3 (#1788)

* permissions rename :3

* Update Permissions.js

* Update TextChannel.js

* Update GuildChannel.js
This commit is contained in:
Gus Caplan
2017-08-17 09:27:50 -07:00
committed by Crawl
parent e677543c30
commit 23d42d7e22
3 changed files with 17 additions and 17 deletions

View File

@@ -35,21 +35,6 @@ class TextChannel extends GuildChannel {
this.lastMessageID = data.last_message_id;
}
/**
* A collection of members that can see this channel, mapped by their ID
* @type {Collection<Snowflake, GuildMember>}
* @readonly
*/
get members() {
const members = new Collection();
for (const member of this.guild.members.values()) {
if (this.permissionsFor(member).has('READ_MESSAGES')) {
members.set(member.id, member);
}
}
return members;
}
/**
* Fetch all webhooks for the channel.
* @returns {Promise<Collection<Snowflake, Webhook>>}