Discord: ParseSnowflake now uses ParseUint

This commit is contained in:
diamondburned 2020-08-19 21:53:22 -07:00
parent 3312c66515
commit 87c648ae1d
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@ func ParseSnowflake(sf string) (Snowflake, error) {
return NullSnowflake, nil
}
i, err := strconv.ParseInt(sf, 10, 64)
u, err := strconv.ParseUint(sf, 10, 64)
if err != nil {
return 0, err
}
return Snowflake(i), nil
return Snowflake(u), nil
}
func (s *Snowflake) UnmarshalJSON(v []byte) error {