mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
More deprecated stuff
This commit is contained in:
@@ -35,7 +35,7 @@ class TextChannel extends GuildChannel {
|
||||
get members() {
|
||||
const members = new Collection();
|
||||
for (const member of this.guild.members.values()) {
|
||||
if (this.permissionsFor(member).hasPermission('READ_MESSAGES')) {
|
||||
if (this.permissionsFor(member).has('READ_MESSAGES')) {
|
||||
members.set(member.id, member);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user