Plugin
DontRoundMyTimestamps
Always rounds relative timestamps down, so 7.6y becomes 7y instead of 8y
1
/*2
* FiveCord — a Discord client mod3
* Copyright (c) 2025 FiveCord4
* SPDX-License-Identifier: GPL-3.0-or-later5
*/6
7
import { Devs } from "@utils/constants";8
import definePlugin from "@utils/types";9
import { moment } from "@webpack/common";10
11
export 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