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:
parent
3aa92c8f05
commit
592d2f7172
|
@ -61,6 +61,10 @@ func (s Snowflake) MarshalJSON() ([]byte, error) {
|
|||
}
|
||||
|
||||
func (s Snowflake) String() string {
|
||||
if s == NullSnowflake {
|
||||
return ""
|
||||
}
|
||||
|
||||
return strconv.FormatUint(uint64(s), 10)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue