aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorDrake <53356436+Ruthenic@users.noreply.github.com>2022-10-01 19:08:34 -0700
committerGitHub <noreply@github.com>2022-10-02 04:08:34 +0200
commitca2f9d937cc6e259fb4ac5428bfd14345cc03078 (patch)
tree2a0d2f46e6f97db4c33b6addbdadfd36c060451b /src/plugins
parent19801321ccd6b50f014336bb90127df7a9e2d32a (diff)
downloadVencord-ca2f9d937cc6e259fb4ac5428bfd14345cc03078.tar.gz
Vencord-ca2f9d937cc6e259fb4ac5428bfd14345cc03078.tar.bz2
Vencord-ca2f9d937cc6e259fb4ac5428bfd14345cc03078.zip
feat(plugin): add NoReplyMention (#23)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/noReplyMention.ts19
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;"
+ }
+ }
+ ]
+})