1
Fork 0
mirror of https://github.com/RGBCube/bonfire.v synced 2025-07-28 14:37:44 +00:00

Fix paste failure

This commit is contained in:
RGBCube 2022-12-04 23:04:36 +03:00 committed by GitHub
parent e908c460aa
commit 042b305b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ pub type Snowflake = u64
// created_at returns the Time the Snowflake was created at.
[inline]
pub fn (s Snowflake) created_at() Time {
seconds, milliseconds := v(i64((s >> 22) + .discord_epoch_ms))
seconds, milliseconds := separate_seconds_and_milliseconds(i64((s >> 22) + .discord_epoch_ms))
return time.unix2(seconds, milliseconds * 1000)
}