1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 10:26:21 +00:00
Vencord/src/plugins/imageLink/index.ts

26 lines
719 B
TypeScript
Raw Normal View History

2024-05-03 20:42:14 +00:00
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "ImageLink",
description: "Never hide image links in messages, even if it's the only content",
authors: [Devs.Kyuuhachi, Devs.Sqaaakoi],
2024-05-03 20:42:14 +00:00
patches: [
{
find: "unknownUserMentionPlaceholder:",
2024-05-03 20:42:14 +00:00
replacement: {
// SimpleEmbedTypes.has(embed.type) && isEmbedInline(embed)
match: /\i\.has\(\i\.type\)&&\(0,\i\.\i\)\(\i\)/,
replace: "false",
}
}
]
2024-05-03 20:42:14 +00:00
});