fix(core): resolve post-rebase type errors

This commit is contained in:
Peter Steinberger
2026-03-02 21:39:37 +00:00
parent 58cde87436
commit f7c658efb9
3 changed files with 12 additions and 4 deletions

View File

@@ -870,7 +870,7 @@ async function dispatchDiscordComponentEvent(params: {
allowFrom: channelConfig?.users ?? guildInfo?.users,
normalizeEntry: (entry) => {
const normalized = normalizeDiscordAllowList([entry], ["discord:", "user:", "pk:"]);
const candidate = normalized?.[0];
const candidate = normalized?.ids.values().next().value;
return candidate && /^\d+$/.test(candidate) ? candidate : undefined;
},
})