mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-11-25 15:30:01 +00:00
Fix: I some how screwed up a conflict issue
This commit is contained in:
1 parent
2863d66997
commit
a032e1bf77
1 file changed
+2
-5
+2
-5
@@ -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