Add native VoidBot persona support

This commit is contained in:
Meta Vens 2026-06-02 12:58:25 +01:00
commit 1d8b0e6819
7 changed files with 255 additions and 31 deletions

View file

@ -807,7 +807,8 @@ async function ensureRepoIdentityRoles(options: {
registryPath: string;
identities: RepoDiscordIdentity[];
}): Promise<{ identities: RepoDiscordIdentity[] }> {
const identitiesMissingRoles = options.identities.filter((identity) => !identity.roleId);
const identitiesMissingRoles = options.identities.filter((identity) =>
identity.identityKind !== "native_persona" && !identity.roleId);
if (identitiesMissingRoles.length === 0) {
return { identities: options.identities };