Plugin

DontRoundMyTimestamps

Always rounds relative timestamps down, so 7.6y becomes 7y instead of 8y

Appearance Utility
index.ts
Download

Source

src/plugins/dontRoundMyTimestamps/index.ts
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { Devs } from "@utils/constants";
8import definePlugin from "@utils/types";
9import { moment } from "@webpack/common";
10
11export default definePlugin({
12 name: "DontRoundMyTimestamps",
13 authors: [Devs.Lexi],
14 description: "Always rounds relative timestamps down, so 7.6y becomes 7y instead of 8y",
15 tags: ["Appearance", "Utility"],
16
17 start() {
18 moment.relativeTimeRounding(Math.floor);
19 },
20
21 stop() {
22 moment.relativeTimeRounding(Math.round);
23 }
24});
25