finally update this thing

master
Drake 2 years ago
parent 72981d7156
commit 2e330bbe1e

@ -1,19 +1,21 @@
function onStart(ctx) {
const createPendingReply = demon.webpack.findByProps("createPendingReply")
ctx["unpatch"] = demon.patcher.before("createPendingReply", createPendingReply, (args) => {
const { findByProps } = demon.summon("modules/webpack")
const { before } = demon.summon("patcher")
function onStart() {
const createPendingReply = findByProps("createPendingReply")
const unpatch = before("createPendingReply", createPendingReply, (args) => {
args[0].shouldMention = false
})
return {
unpatch
}
}
function onStop(ctx) {
ctx["unpatch"]()
ctx.unpatch()
}
export default {
onStart,
onStop,
metadata: {
name: "noReplyMention",
desc: "Disable reply pings by default. (Cumcord port)",
author: "Drake",
cumcord: false
}
onStop
}

Loading…
Cancel
Save