Skip to content

Commit

Permalink
fix(GuildMemberManager): allow moving members to any non-text channel
Browse files Browse the repository at this point in the history
change check on channel type to allow stage channel as well

close #5673
  • Loading branch information
AndyClausen committed May 27, 2021
1 parent 840ad0a commit a0c8ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/GuildMemberManager.js
Expand Up @@ -166,7 +166,7 @@ class GuildMemberManager extends BaseManager {
const _data = { ...data };
if (_data.channel) {
_data.channel = this.guild.channels.resolve(_data.channel);
if (!_data.channel || _data.channel.type !== 'voice') {
if (!_data.channel || _data.channel.isText()) {
throw new Error('GUILD_VOICE_CHANNEL_RESOLVE');
}
_data.channel_id = _data.channel.id;
Expand Down

0 comments on commit a0c8ee4

Please sign in to comment.