MuteNewGuild: Support lurked guilds (#1546)
Co-authored-by: Rawiros <45668076+Rawiros@users.noreply.github.com01~>
This commit is contained in:
		
							parent
							
								
									39ad88f433
								
							
						
					
					
						commit
						45bb1af011
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -36,7 +36,7 @@ const settings = definePluginSettings({ | |||
|         description: "Suppress All Role @mentions", | ||||
|         type: OptionType.BOOLEAN, | ||||
|         default: true | ||||
|     }, | ||||
|     } | ||||
| }); | ||||
| 
 | ||||
| export default definePlugin({ | ||||
|  | @ -50,6 +50,13 @@ export default definePlugin({ | |||
|                 match: /INVITE_ACCEPT_SUCCESS.+?;(\i)=null.+?;/, | ||||
|                 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, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue