diff --git a/src/equicordplugins/allowedMentions/index.tsx b/src/equicordplugins/allowedMentions/index.tsx index d02b8a1b..bd2b81fc 100644 --- a/src/equicordplugins/allowedMentions/index.tsx +++ b/src/equicordplugins/allowedMentions/index.tsx @@ -7,7 +7,7 @@ import { addPreSendListener, MessageExtra, removePreSendListener } from "@api/MessageEvents"; import { definePluginSettings } from "@api/Settings"; import { Flex } from "@components/Flex"; -import { Devs, EquicordDevs } from "@utils/constants"; +import { Devs } from "@utils/constants"; import { isNonNullish } from "@utils/guards"; import definePlugin, { OptionType } from "@utils/types"; import { Alerts, GuildStore, PermissionsBits, PermissionStore } from "@webpack/common"; @@ -17,7 +17,7 @@ import { AllowedMentions, AllowedMentionsBar, AllowedMentionsProps, AllowedMenti export default definePlugin({ name: "AllowedMentions", - authors: [EquicordDevs.arHSM, Devs.amia], + authors: [Devs.arHSM, Devs.amia], description: "Fine grained control over whom to ping when sending or editing a message.", dependencies: ["MessageEventsAPI"], settings: definePluginSettings({ diff --git a/src/equicordplugins/youtubeDescription/index.tsx b/src/equicordplugins/youtubeDescription/index.tsx new file mode 100644 index 00000000..14ec6351 --- /dev/null +++ b/src/equicordplugins/youtubeDescription/index.tsx @@ -0,0 +1,23 @@ +/* + * 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 }" + } + } + ] +}); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index ddeca008..99ae3ef0 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -499,10 +499,6 @@ export const EquicordDevs = Object.freeze({ name: "fres", id: 843448897737064448n }, - arHSM: { - name: "arHSM", - id: 841509053422632990n - }, Dams: { name: "Dams", id: 769939285792653325n