fix(api): exempt bots from being considered unclaimed users (#45)
This commit is contained in:
@@ -116,7 +116,7 @@ export class VoiceService {
|
||||
throw new UnknownChannelError();
|
||||
}
|
||||
|
||||
const isUnclaimed = !user.passwordHash && !user.isBot;
|
||||
const isUnclaimed = user.isUnclaimedAccount();
|
||||
if (isUnclaimed) {
|
||||
if (channel.type === ChannelTypes.DM) {
|
||||
throw new UnclaimedAccountRestrictedError('join 1:1 voice calls');
|
||||
|
||||
Reference in New Issue
Block a user