mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
docs(BitFields): remove string from BitFieldResolvable (#5122)
* refactor(BitFields): remove string from BitFieldResolvable * docs(Client#generateInvite): fix indentation in example * chore: resolve conflict * refactor: revert breaking changes Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com>
This commit is contained in:
@@ -200,7 +200,7 @@ class GuildChannel extends Channel {
|
||||
* channel.overwritePermissions([
|
||||
* {
|
||||
* id: message.author.id,
|
||||
* deny: ['VIEW_CHANNEL'],
|
||||
* deny: [Permissions.FLAGS.VIEW_CHANNEL],
|
||||
* },
|
||||
* ], 'Needed to change permissions');
|
||||
*/
|
||||
@@ -284,7 +284,7 @@ class GuildChannel extends Channel {
|
||||
get members() {
|
||||
const members = new Collection();
|
||||
for (const member of this.guild.members.cache.values()) {
|
||||
if (this.permissionsFor(member).has('VIEW_CHANNEL', false)) {
|
||||
if (this.permissionsFor(member).has(Permissions.FLAGS.VIEW_CHANNEL, false)) {
|
||||
members.set(member.id, member);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user