mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-16 03:44:26 +00:00
Reverted Snowflake type changes
This commit is contained in:
parent
7e73f00eb9
commit
956df56f98
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
const DiscordEpoch = 1420070400000 * int64(time.Millisecond)
|
const DiscordEpoch = 1420070400000 * int64(time.Millisecond)
|
||||||
|
|
||||||
type Snowflake uint64
|
type Snowflake int64
|
||||||
|
|
||||||
func NewSnowflake(t time.Time) Snowflake {
|
func NewSnowflake(t time.Time) Snowflake {
|
||||||
return Snowflake(TimeToDiscordEpoch(t) << 22)
|
return Snowflake(TimeToDiscordEpoch(t) << 22)
|
||||||
|
|
Loading…
Reference in a new issue