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