PinDMs: Add option to sort by most recent message

This commit is contained in:
Vendicated 2023-04-17 01:06:54 +02:00
parent d35654b887
commit 1caaa78490
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
4 changed files with 38 additions and 8 deletions

View file

@ -21,7 +21,7 @@ import definePlugin from "@utils/types";
import { Channel } from "discord-types/general";
import { addContextMenus, removeContextMenus } from "./contextMenus";
import { getPinAt, isPinned, snapshotArray, usePinnedDms } from "./settings";
import { getPinAt, isPinned, settings, snapshotArray, usePinnedDms } from "./settings";
export default definePlugin({
name: "PinDMs",
@ -30,6 +30,8 @@ export default definePlugin({
dependencies: ["ContextMenuAPI"],
settings,
start: addContextMenus,
stop: removeContextMenus,