mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 15:00:00 +00:00
6 lines
208 B
TypeScript
6 lines
208 B
TypeScript
import { Snowflake, SnowflakeUtil } from "discord.js";
|
|
|
|
export function idToTimestamp(id: string) {
|
|
if (typeof id === "number") return null;
|
|
return SnowflakeUtil.deconstruct(id as Snowflake).timestamp;
|
|
}
|