Fix: I some how screwed up a conflict issue

This commit is contained in:
looskie committed 2021-06-25 19:25:29 -04:00
1 parent 2863d66997
commit a032e1bf77
1 file changed
+1 -4
+1 -4
View File
@@ -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 {