mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 04:17:19 +00:00
Fix: I some how screwed up a conflict issue
This commit is contained in:
@@ -11,12 +11,9 @@ const EPOCH = 1420070400000; // Discord's EPOCH
|
|||||||
|
|
||||||
export function isSnowflake(snowflake: string): boolean {
|
export function isSnowflake(snowflake: string): boolean {
|
||||||
const { timestamp } = deconstruct(snowflake);
|
const { timestamp } = deconstruct(snowflake);
|
||||||
return (timestamp > EPOCH && timestamp <= 3619093655551);
|
return timestamp > EPOCH && timestamp <= 3619093655551;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
const deconstruct = (snowflake: string): DeconstructedSnowflake => {
|
const deconstruct = (snowflake: string): DeconstructedSnowflake => {
|
||||||
const BINARY = idToBinary(snowflake).padStart(64, "0");
|
const BINARY = idToBinary(snowflake).padStart(64, "0");
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user