new plugin StickerPaste ~ Insert stickers instead of sending (#2781)

This commit is contained in:
ImBanana 2024-09-01 05:33:07 +03:00 committed by Nuckyz
parent 81eabc7ee2
commit 273981deb7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# StickerPaste
Makes picking a sticker in the sticker picker insert it into the chatbox instead of instantly sending.

View file

@ -0,0 +1,24 @@
/*
* 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: "StickerPaste",
description: "Makes picking a sticker in the sticker picker insert it into the chatbox instead of instantly sending",
authors: [Devs.ImBanana],
patches: [
{
find: ".stickers,previewSticker:",
replacement: {
match: /if\(\i\.\i\.getUploadCount/,
replace: "return true;$&",
}
}
]
});