Fix: I some how screwed up a conflict issue

This commit is contained in:
looskie
2021-06-25 19:25:29 -04:00
parent 2863d66997
commit a032e1bf77

View File

@@ -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 {