feat(plugin): add NoReplyMention (#23)

This commit is contained in:
Drake 2022-10-01 19:08:34 -07:00 committed by GitHub
parent 19801321cc
commit ca2f9d937c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,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;"
}
}
]
})