add selfForward plugin (#307)

* add inviteDefaults plugin

* Update index.ts

* add selfForward plugin

---------

Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
VR 2025-07-29 06:09:22 -04:00 • committed by GitHub
parent b1f7290a03
commit 9fa2ba9c3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,23 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2025 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "SelfForward",
description: "adds the current channel to the forward list popup",
authors: [EquicordDevs.VillainsRule],
patches: [
{
find: ".getChannelHistory(),",
replacement: [{
match: /\i.id\]/,
replace: "]"
}]
}
]
});