aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/noReplyMention.ts
blob: b736c26e3c33cbcb38f3328ae030b26b1afc6e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import definePlugin from "../utils/types";

export default definePlugin({
    name: "NoReplyMention",
    description: "Disables reply pings by default",
    authors: [{
        name: "DustyAngel47",
        id: 714583473804935238n
    }],
    patches: [
        {
            find: "CREATE_PENDING_REPLY:function",
            replacement: {
                match: /CREATE_PENDING_REPLY:function\((.{1,2})\){/,
                replace: "CREATE_PENDING_REPLY:function($1){$1.shouldMention=false;"
            }
        }
    ]
});