24 lines
657 B
TypeScript
24 lines
657 B
TypeScript
/*
|
|
* 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;$&",
|
|
}
|
|
}
|
|
]
|
|
});
|