New Plugin + Fix Devs

This commit is contained in:
thororen 2024-05-09 14:22:27 -04:00
parent 70962efec5
commit 4992d89e82
3 changed files with 25 additions and 6 deletions

View file

@ -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({

View file

@ -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 }"
}
}
]
});

View file

@ -499,10 +499,6 @@ export const EquicordDevs = Object.freeze({
name: "fres",
id: 843448897737064448n
},
arHSM: {
name: "arHSM",
id: 841509053422632990n
},
Dams: {
name: "Dams",
id: 769939285792653325n