Helpers for making Discord-related things.
- Fully type-safe
- Easy to use
- Fastens your development
npm i discodoodle
yarn add discodoodle
pnpm add discodoodle
// esm
import discodoodle from "discodoodle";
// require
const discodoodle = require("discodoodle");
This simple function helps you to convert unix epoch time (milliseconds) to Discord timestamps.
discodoodle.convertTimeToDiscord(Date.now() - 3_000, "R")
The result (when sent on Discord as a message) should show as "3 seconds ago".