DisableDMCallIdle -> DisableCallIdle; add more functionality
This commit is contained in:
		
							parent
							
								
									b2c047390e
								
							
						
					
					
						commit
						237f080471
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		|  | @ -16,12 +16,14 @@ | |||
|  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 | ||||
| */ | ||||
| 
 | ||||
| import { migratePluginSettings } from "@api/Settings"; | ||||
| import { Devs } from "@utils/constants"; | ||||
| import definePlugin from "@utils/types"; | ||||
| 
 | ||||
| migratePluginSettings("DisableCallIdle", "DisableDMCallIdle"); | ||||
| export default definePlugin({ | ||||
|     name: "DisableDMCallIdle", | ||||
|     description: "Disables automatically getting kicked from a DM voice call after 3 minutes.", | ||||
|     name: "DisableCallIdle", | ||||
|     description: "Disables automatically getting kicked from a DM voice call after 3 minutes and being moved to an AFK voice channel.", | ||||
|     authors: [Devs.Nuckyz], | ||||
|     patches: [ | ||||
|         { | ||||
|  | @ -30,6 +32,13 @@ export default definePlugin({ | |||
|                 match: /,?(?=this\.idleTimeout=new \i\.Timeout)/, | ||||
|                 replace: ";return;" | ||||
|             } | ||||
|         }, | ||||
|         { | ||||
|             find: "handleIdleUpdate(){", | ||||
|             replacement: { | ||||
|                 match: /(?<=_initialize\(\){)/, | ||||
|                 replace: "return;" | ||||
|             } | ||||
|         } | ||||
|     ] | ||||
| }); | ||||
		Loading…
	
		Reference in a new issue