From ca2f9d937cc6e259fb4ac5428bfd14345cc03078 Mon Sep 17 00:00:00 2001 From: Drake <53356436+Ruthenic@users.noreply.github.com> Date: Sat, 1 Oct 2022 19:08:34 -0700 Subject: [PATCH] feat(plugin): add NoReplyMention (#23) --- src/plugins/noReplyMention.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/plugins/noReplyMention.ts diff --git a/src/plugins/noReplyMention.ts b/src/plugins/noReplyMention.ts new file mode 100644 index 00000000..4d4ceb37 --- /dev/null +++ b/src/plugins/noReplyMention.ts @@ -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;" + } + } + ] +})