Skip to content

Commit

Permalink
new plugin StickerPaste ~ Insert stickers instead of sending (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImBonana authored and Nuckyz committed Sep 1, 2024
1 parent 81eabc7 commit 273981d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/stickerPaste/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# StickerPaste

Makes picking a sticker in the sticker picker insert it into the chatbox instead of instantly sending.
24 changes: 24 additions & 0 deletions src/plugins/stickerPaste/index.ts
Original file line number Diff line number Diff line change
@@ -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;$&",
}
}
]
});

0 comments on commit 273981d

Please sign in to comment.