1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

Fix null snowflakes being formatted as 18446744073709551615

This commit is contained in:
Matthew Penner 2020-05-13 15:51:26 -06:00
parent 3aa92c8f05
commit 592d2f7172

View file

@ -61,6 +61,10 @@ func (s Snowflake) MarshalJSON() ([]byte, error) {
} }
func (s Snowflake) String() string { func (s Snowflake) String() string {
if s == NullSnowflake {
return ""
}
return strconv.FormatUint(uint64(s), 10) return strconv.FormatUint(uint64(s), 10)
} }