Merge branch 'main' into main

This commit is contained in:
looskie authored and GitHub committed 2021-06-25 16:23:35 -07:00
commit 2863d66997
1 file changed
+4 -3
+4 -3
View File
@@ -9,9 +9,10 @@ interface DeconstructedSnowflake {
const EPOCH = 1420070400000; // Discord's EPOCH
export const isSnowflake = (snowflake: string): boolean => {
const { timestamp } = deconstruct(snowflake);
if (timestamp > EPOCH && timestamp <= 3619093655551) return true;
export function isSnowflake(snowflake: string): boolean {
const { timestamp } = deconstruct(snowflake);
return (timestamp > EPOCH && timestamp <= 3619093655551);
}
return false;
};