mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
Merge branch 'main' into main
This commit is contained in:
@@ -9,9 +9,10 @@ interface DeconstructedSnowflake {
|
|||||||
|
|
||||||
const EPOCH = 1420070400000; // Discord's EPOCH
|
const EPOCH = 1420070400000; // Discord's EPOCH
|
||||||
|
|
||||||
export const isSnowflake = (snowflake: string): boolean => {
|
export function isSnowflake(snowflake: string): boolean {
|
||||||
const { timestamp } = deconstruct(snowflake);
|
const { timestamp } = deconstruct(snowflake);
|
||||||
if (timestamp > EPOCH && timestamp <= 3619093655551) return true;
|
return (timestamp > EPOCH && timestamp <= 3619093655551);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user