mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
fix: channel type check in actions (#6086)
This commit is contained in:
@@ -573,7 +573,7 @@ class GuildChannel extends Channel {
|
||||
*/
|
||||
get manageable() {
|
||||
if (this.client.user.id === this.guild.ownerId) return true;
|
||||
if (this.type in VoiceBasedChannelTypes) {
|
||||
if (VoiceBasedChannelTypes.includes(this.type)) {
|
||||
if (!this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user