mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-28 07:11:06 +00:00
Fix null snowflakes being formatted as 18446744073709551615
This commit is contained in:
parent
3aa92c8f05
commit
592d2f7172
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue