We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0066d00 commit 61ef46fCopy full SHA for 61ef46f
src/structures/GuildChannel.js
@@ -566,7 +566,13 @@ class GuildChannel extends Channel {
566
*/
567
get manageable() {
568
if (this.client.user.id === this.guild.ownerID) return true;
569
- if (!this.viewable) return false;
+ if (this.type === 'voice') {
570
+ if (!this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false)) {
571
+ return false;
572
+ }
573
+ } else if (!this.viewable) {
574
575
576
return this.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_CHANNELS, false);
577
}
578
0 commit comments