Skip to content

Change IsSnowflake to only look for a timestamp#27

Closed
aevitas wants to merge 1 commit intomasterfrom
fix/id-parsing
Closed

Change IsSnowflake to only look for a timestamp#27
aevitas wants to merge 1 commit intomasterfrom
fix/id-parsing

Conversation

@aevitas
Copy link
Owner

@aevitas aevitas commented Dec 14, 2025

Fixes #19 by changing IsSnowflake to only look for the timestamp component, as the others can legitimately be 0 after masking. This should improve compatibility with Discord generated snowflakes especially.

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.

IsSnowflake validation incorrectly rejects valid IDs

1 participant