From 62bf863d1c8d102a30b8bf0e159ed4e2b8216422 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Mon, 6 Mar 2023 13:49:41 +0800 Subject: [PATCH] new: NoAutoReplyMention --- plugins/NoAutoReplyMention/manifest.json | 14 ++++++++++++++ plugins/NoAutoReplyMention/src/index.ts | 1 + 2 files changed, 15 insertions(+) create mode 100644 plugins/NoAutoReplyMention/manifest.json create mode 100644 plugins/NoAutoReplyMention/src/index.ts diff --git a/plugins/NoAutoReplyMention/manifest.json b/plugins/NoAutoReplyMention/manifest.json new file mode 100644 index 0000000..60c40b9 --- /dev/null +++ b/plugins/NoAutoReplyMention/manifest.json @@ -0,0 +1,14 @@ +{ + "name": "NoAutoReplyMention", + "description": "Turns off auto mention when replying to someone.", + "authors": [ + { + "name": "amsyarasyiq", + "id": "492949202121261067" + } + ], + "main": "src/index.ts", + "vendetta": { + "icon": "ic_notif_off" + } +} diff --git a/plugins/NoAutoReplyMention/src/index.ts b/plugins/NoAutoReplyMention/src/index.ts new file mode 100644 index 0000000..4e4c031 --- /dev/null +++ b/plugins/NoAutoReplyMention/src/index.ts @@ -0,0 +1 @@ +export const onUnload = globalThis.vendetta.patcher.before("createPendingReply", globalThis.vendetta.metro.findByProps("createPendingReply"), ([arg]) => arg.shouldMention &&= false);