fix(api): exempt bots from being considered unclaimed users (#45)

This commit is contained in:
hampus-fluxer
2026-01-06 03:45:28 +01:00
committed by GitHub
parent 1cef2290fe
commit 6f21a7e37b
17 changed files with 45 additions and 51 deletions

View File

@@ -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');