3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 01:05:02 +00:00

Make message with default buttons stateful

This commit is contained in:
Dark 2021-06-08 04:34:32 +02:00
parent 38a5e07be8
commit 1c8354b39d
10 changed files with 158 additions and 47 deletions

View file

@ -0,0 +1,10 @@
import moment from "moment";
const EPOCH = 1420070400000;
export function idToTimestamp(id: string) {
if (typeof id === "number") return null;
return moment(+id / 4194304 + EPOCH)
.utc()
.valueOf();
}