diff options
Diffstat (limited to 'src/plugins/noReplyMention.ts')
-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;" + } + } + ] +}) |