Skip to content

fix(config): add missing discordUserIds param to parseSettings#64

Open
bladewing wants to merge 1 commit intomoazbuilds:masterfrom
bladewing:fix/parseSettings-missing-discordUserIds-param
Open

fix(config): add missing discordUserIds param to parseSettings#64
bladewing wants to merge 1 commit intomoazbuilds:masterfrom
bladewing:fix/parseSettings-missing-discordUserIds-param

Conversation

@bladewing
Copy link
Copy Markdown
Contributor

Summary

  • Restores the discordUserIds?: string[] parameter to parseSettings() in src/config.ts
  • Fixes ReferenceError: discordUserIds is not defined crash on daemon startup
  • One-line change; the function body and callers already expect this parameter

Context

Discord snowflake IDs exceed Number.MAX_SAFE_INTEGER. The extractDiscordUserIds() function extracts them as raw strings before JSON.parse loses precision. This parameter was accidentally removed in 58f6c4f.

Closes #63

Test plan

  • bun run src/index.ts start --web starts without ReferenceError
  • Configure Discord with snowflake user IDs and verify they are parsed correctly as strings

The parameter was removed from the signature in 58f6c4f but the
function body and both callers still reference it, causing a
ReferenceError crash on startup.

Closes moazbuilds#63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: parseSettings missing discordUserIds parameter causes ReferenceError on startup

1 participant