MuteNewGuild: Support lurked guilds (#1546)
Co-authored-by: Rawiros <45668076+Rawiros@users.noreply.github.com01~>
This commit is contained in:
parent
39ad88f433
commit
45bb1af011
@ -36,7 +36,7 @@ const settings = definePluginSettings({
|
|||||||
description: "Suppress All Role @mentions",
|
description: "Suppress All Role @mentions",
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
default: true
|
default: true
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
@ -50,6 +50,13 @@ export default definePlugin({
|
|||||||
match: /INVITE_ACCEPT_SUCCESS.+?;(\i)=null.+?;/,
|
match: /INVITE_ACCEPT_SUCCESS.+?;(\i)=null.+?;/,
|
||||||
replace: (m, guildId) => `${m}$self.handleMute(${guildId});`
|
replace: (m, guildId) => `${m}$self.handleMute(${guildId});`
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
find: "{joinGuild:function",
|
||||||
|
replacement: {
|
||||||
|
match: /guildId:(\w+),lurker:(\w+).{0,20}\)}\)\);/,
|
||||||
|
replace: (m, guildId, lurker) => `${m}if(!${lurker})$self.handleMute(${guildId});`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
settings,
|
settings,
|
||||||
|
Loading…
Reference in New Issue
Block a user