Add pagination to !mutes, show manual mutes separately with -manual
This commit is contained in:
parent
221f996f45
commit
dca678989e
2 changed files with 199 additions and 110 deletions
18
backend/src/humanizeDurationShort.ts
Normal file
18
backend/src/humanizeDurationShort.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import humanizeDuration from "humanize-duration";
|
||||
|
||||
export const humanizeDurationShort = humanizeDuration.humanizer({
|
||||
language: "shortEn",
|
||||
languages: {
|
||||
shortEn: {
|
||||
y: () => "y",
|
||||
mo: () => "mo",
|
||||
w: () => "w",
|
||||
d: () => "d",
|
||||
h: () => "h",
|
||||
m: () => "m",
|
||||
s: () => "s",
|
||||
ms: () => "ms",
|
||||
},
|
||||
},
|
||||
spacer: "",
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue