mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 03:00:35 +00:00
Webpack build for branch master: 23d42d7e22
This commit is contained in:
parent
6a84766db1
commit
00bee5d9c5
2 changed files with 18 additions and 18 deletions
|
|
@ -4367,7 +4367,7 @@ class Permissions {
|
||||||
* - `MANAGE_GUILD` (edit the guild information, region, etc.)
|
* - `MANAGE_GUILD` (edit the guild information, region, etc.)
|
||||||
* - `ADD_REACTIONS` (add new reactions to messages)
|
* - `ADD_REACTIONS` (add new reactions to messages)
|
||||||
* - `VIEW_AUDIT_LOG`
|
* - `VIEW_AUDIT_LOG`
|
||||||
* - `READ_MESSAGES`
|
* - `VIEW_CHANNELS`
|
||||||
* - `SEND_MESSAGES`
|
* - `SEND_MESSAGES`
|
||||||
* - `SEND_TTS_MESSAGES`
|
* - `SEND_TTS_MESSAGES`
|
||||||
* - `MANAGE_MESSAGES` (delete messages and reactions)
|
* - `MANAGE_MESSAGES` (delete messages and reactions)
|
||||||
|
|
@ -4400,7 +4400,7 @@ Permissions.FLAGS = {
|
||||||
ADD_REACTIONS: 1 << 6,
|
ADD_REACTIONS: 1 << 6,
|
||||||
VIEW_AUDIT_LOG: 1 << 7,
|
VIEW_AUDIT_LOG: 1 << 7,
|
||||||
|
|
||||||
READ_MESSAGES: 1 << 10,
|
VIEW_CHANNEL: 1 << 10,
|
||||||
SEND_MESSAGES: 1 << 11,
|
SEND_MESSAGES: 1 << 11,
|
||||||
SEND_TTS_MESSAGES: 1 << 12,
|
SEND_TTS_MESSAGES: 1 << 12,
|
||||||
MANAGE_MESSAGES: 1 << 13,
|
MANAGE_MESSAGES: 1 << 13,
|
||||||
|
|
@ -5498,6 +5498,21 @@ class GuildChannel extends Channel {
|
||||||
.then(() => this);
|
.then(() => this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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('VIEW_CHANNEL')) {
|
||||||
|
members.set(member.id, member);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return members;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The data for a guild channel.
|
* The data for a guild channel.
|
||||||
* @typedef {Object} ChannelData
|
* @typedef {Object} ChannelData
|
||||||
|
|
@ -16420,21 +16435,6 @@ class TextChannel extends GuildChannel {
|
||||||
this.lastMessageID = data.last_message_id;
|
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.
|
* Fetch all webhooks for the channel.
|
||||||
* @returns {Promise<Collection<Snowflake, Webhook>>}
|
* @returns {Promise<Collection<Snowflake, Webhook>>}
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue