diff --git a/src/snowflake.ts b/src/snowflake.ts index 8b4709f..c358fb7 100644 --- a/src/snowflake.ts +++ b/src/snowflake.ts @@ -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; };