Plugin

MoreQuickReactions

Increases the number of reactions available in the Quick React hover menu

Emotes Reactions Customisation Shortcuts
index.ts
Download

Source

src/plugins/moreQuickReactions/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 { definePluginSettings } from "@api/Settings";
8import { Devs } from "@utils/constants";
9import definePlugin, { OptionType } from "@utils/types";
10
11const settings = definePluginSettings({
12 reactionCount: {
13 description: "Number of reactions (0-42)",
14 type: OptionType.NUMBER,
15 default: 5
16 },
17});
18
19export default definePlugin({
20 name: "MoreQuickReactions",
21 description: "Increases the number of reactions available in the Quick React hover menu",
22 authors: [Devs.iamme],
23 tags: ["Emotes", "Reactions", "Customisation", "Shortcuts"],
24 settings,
25
26 get reactionCount() {
27 return settings.store.reactionCount;
28 },
29
30 patches: [
31 {
32 find: "#{intl::MESSAGE_UTILITIES_A11Y_LABEL}",
33 replacement: {
34 match: /(?<=length>=3\?.{0,40})\.slice\(0,3\)/,
35 replace: ".slice(0,$self.reactionCount)"
36 }
37 }
38 ],
39});
40