diff options
author | Drake <53356436+Ruthenic@users.noreply.github.com> | 2022-10-01 19:08:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 04:08:34 +0200 |
commit | ca2f9d937cc6e259fb4ac5428bfd14345cc03078 (patch) | |
tree | 2a0d2f46e6f97db4c33b6addbdadfd36c060451b | |
parent | 19801321ccd6b50f014336bb90127df7a9e2d32a (diff) | |
download | Vencord-ca2f9d937cc6e259fb4ac5428bfd14345cc03078.tar.gz Vencord-ca2f9d937cc6e259fb4ac5428bfd14345cc03078.tar.bz2 Vencord-ca2f9d937cc6e259fb4ac5428bfd14345cc03078.zip |
feat(plugin): add NoReplyMention (#23)
-rw-r--r-- | src/plugins/noReplyMention.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/noReplyMention.ts b/src/plugins/noReplyMention.ts new file mode 100644 index 0000000..4d4ceb3 --- /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;" + } + } + ] +}) |