diff --git a/dist/plugin.js b/dist/plugin.js index d610beb..162e4b5 100644 --- a/dist/plugin.js +++ b/dist/plugin.js @@ -1 +1 @@ -(function(){"use strict";function n(e){const o=demon.webpack.findByProps("createPendingReply");e.unpatch=demon.patcher.before("createPendingReply",o,r=>{r[0].shouldMention=!1})}function t(e){e.unpatch()}var a={onStart:n,onStop:t,metadata:{name:"noReplyMention",desc:"Disable reply pings by default. (Cumcord port)",author:"Drake",cumcord:!1}};return a})(); +(function(){"use strict";const{findByProps:e}=demon.summon("modules/webpack"),{before:t}=demon.summon("patcher");function o(){const n=e("createPendingReply");return{unpatch:t("createPendingReply",n,s=>{s[0].shouldMention=!1})}}function c(n){n.unpatch()}var a={onStart:o,onStop:c,meta:{name:"noReplyMention",desc:"Disable reply pings by default."}};return a})(); diff --git a/src/index.js b/src/index.js index d8a0c70..427649e 100644 --- a/src/index.js +++ b/src/index.js @@ -17,5 +17,9 @@ function onStop(ctx) { export default { onStart, - onStop + onStop, + meta: { + name: "noReplyMention", + desc: "Disable reply pings by default." + } }