fix: channel type check in actions (#6086)

This commit is contained in:
Rodry
2021-07-10 21:51:32 +01:00
committed by GitHub
parent f72ce7c136
commit d433fe8a08
7 changed files with 7 additions and 7 deletions

View File

@@ -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;
}