NoDefaultEmojis Fix Hardcode

This commit is contained in:
thororen1234 2024-10-29 15:02:44 -04:00
parent a4593949b5
commit f8151ef2bd

View file

@ -86,8 +86,8 @@ export default definePlugin({
{ {
find: ".Messages.EMOJI_MATCHING", find: ".Messages.EMOJI_MATCHING",
replacement: { replacement: {
match: /renderResults\(e\){/, match: /renderResults\((\i)\){/,
replace: "renderResults(e){ e.results.emojis = e.results.emojis.filter(emoji => !emoji.uniqueName || Vencord.Settings.plugins.NoDefaultEmojis.except.split(',\\ ').includes(emoji.uniqueName));" replace: "renderResults($1){ $1.results.emojis = $1.results.emojis.filter(emoji => !emoji.uniqueName || Vencord.Settings.plugins.NoDefaultEmojis.except.split(',\\ ').includes(emoji.uniqueName));"
} }
} }
], ],