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

Reverted Snowflake type changes

This commit is contained in:
diamondburned (Forefront) 2020-01-20 20:30:13 -08:00
parent 7e73f00eb9
commit 956df56f98

View file

@ -8,7 +8,7 @@ import (
const DiscordEpoch = 1420070400000 * int64(time.Millisecond)
type Snowflake uint64
type Snowflake int64
func NewSnowflake(t time.Time) Snowflake {
return Snowflake(TimeToDiscordEpoch(t) << 22)