aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/noReplyMention.ts
blob: 4d4ceb37ce1c3fd4f3c36ee70fc49676dea852bb (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;"
            }
        }
    ]
})