generated from Demon/demoncord-plugin-template
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
487 B
26 lines
487 B
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()
|
|
}
|
|
|
|
export default {
|
|
onStart,
|
|
onStop,
|
|
meta: {
|
|
name: "noReplyMention",
|
|
desc: "Disable reply pings by default."
|
|
}
|
|
}
|