mirror of
https://github.com/Equicord/Equicord.git
synced 2025-03-10 12:10:24 -04:00
New Plugin + Fix Devs
This commit is contained in:
parent
70962efec5
commit
4992d89e82
3 changed files with 25 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
||||||
import { addPreSendListener, MessageExtra, removePreSendListener } from "@api/MessageEvents";
|
import { addPreSendListener, MessageExtra, removePreSendListener } from "@api/MessageEvents";
|
||||||
import { definePluginSettings } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { Flex } from "@components/Flex";
|
import { Flex } from "@components/Flex";
|
||||||
import { Devs, EquicordDevs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { isNonNullish } from "@utils/guards";
|
import { isNonNullish } from "@utils/guards";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { Alerts, GuildStore, PermissionsBits, PermissionStore } from "@webpack/common";
|
import { Alerts, GuildStore, PermissionsBits, PermissionStore } from "@webpack/common";
|
||||||
|
@ -17,7 +17,7 @@ import { AllowedMentions, AllowedMentionsBar, AllowedMentionsProps, AllowedMenti
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "AllowedMentions",
|
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.",
|
description: "Fine grained control over whom to ping when sending or editing a message.",
|
||||||
dependencies: ["MessageEventsAPI"],
|
dependencies: ["MessageEventsAPI"],
|
||||||
settings: definePluginSettings({
|
settings: definePluginSettings({
|
||||||
|
|
23
src/equicordplugins/youtubeDescription/index.tsx
Normal file
23
src/equicordplugins/youtubeDescription/index.tsx
Normal 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 }"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
|
@ -499,10 +499,6 @@ export const EquicordDevs = Object.freeze({
|
||||||
name: "fres",
|
name: "fres",
|
||||||
id: 843448897737064448n
|
id: 843448897737064448n
|
||||||
},
|
},
|
||||||
arHSM: {
|
|
||||||
name: "arHSM",
|
|
||||||
id: 841509053422632990n
|
|
||||||
},
|
|
||||||
Dams: {
|
Dams: {
|
||||||
name: "Dams",
|
name: "Dams",
|
||||||
id: 769939285792653325n
|
id: 769939285792653325n
|
||||||
|
|
Loading…
Add table
Reference in a new issue