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