new plugin StickerPaste ~ Insert stickers instead of sending (#2781)
This commit is contained in:
parent
81eabc7ee2
commit
273981deb7
2 changed files with 27 additions and 0 deletions
3
src/plugins/stickerPaste/README.md
Normal file
3
src/plugins/stickerPaste/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# StickerPaste
|
||||
|
||||
Makes picking a sticker in the sticker picker insert it into the chatbox instead of instantly sending.
|
24
src/plugins/stickerPaste/index.ts
Normal file
24
src/plugins/stickerPaste/index.ts
Normal 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;$&",
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
Loading…
Reference in a new issue