Plugin
ImageLink
Never hide image links in messages, even if it's the only content
1
import { Devs } from "@utils/constants";2
import definePlugin from "@utils/types";3
4
export default definePlugin({5
name: "ImageLink",6
description: "Never hide image links in messages, even if it039;s the only content",7
tags: ["Media", "Appearance"],8
authors: [Devs.Kyuuhachi, Devs.Sqaaakoi],9
10
patches: [11
{12
find: "unknownUserMentionPlaceholder:",13
replacement: {14
// SimpleEmbedTypes.has(embed.type) && isEmbedInline(embed)15
match: /\i\.has\(\i\.type\)&&\(0,\i\.\i\)\(\i\)/,16
replace: "false",17
}18
}19
]20
});21