mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-26 10:08:52 -05:00
24 lines
709 B
TypeScript
24 lines
709 B
TypeScript
|
/*
|
||
|
* 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: "YoutubeDescription",
|
||
|
description: "Adds descriptions to youtube video embeds",
|
||
|
authors: [Devs.arHSM],
|
||
|
patches: [
|
||
|
{
|
||
|
find: ".default.Messages.SUPPRESS_ALL_EMBEDS",
|
||
|
replacement: {
|
||
|
match: /case \i\.MessageEmbedTypes\.VIDEO:(case \i\.MessageEmbedTypes\.\i:)*break;default:(\i=this\.renderDescription\(\))\}/,
|
||
|
replace: "$1 break; default: $2 }"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
});
|