mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Removed problematic feature
This commit is contained in:
		
							parent
							
								
									90c41c8df4
								
							
						
					
					
						commit
						b3e1b5e140
					
				
					 1 changed files with 3 additions and 9 deletions
				
			
		|  | @ -19,18 +19,12 @@ export default new Command({ | |||
| 
 | ||||
|                 displayEmoteList($, $.client.emojis.cache.filter((emote) => emote.guild.id === guildID).array()); | ||||
|             } else { | ||||
|                 // Otherwise, search via a regex pattern
 | ||||
|                 let flags: string | undefined = undefined; | ||||
| 
 | ||||
|                 if (/^-[dgimsuy]{1,7}$/.test($.args[$.args.length - 1])) { | ||||
|                     flags = $.args.pop().substring(1); | ||||
|                 } | ||||
|                 // Otherwise, by comparing inputs
 | ||||
|                 const query = $.args.join(" ").toLowerCase(); | ||||
| 
 | ||||
|                 displayEmoteList( | ||||
|                     $, | ||||
|                     $.client.emojis.cache | ||||
|                         .filter((emote) => new RegExp($.args.join(" "), flags).test(emote.name)) | ||||
|                         .array() | ||||
|                     $.client.emojis.cache.filter((emote) => emote.name.toLowerCase().includes(query)).array() | ||||
|                 ); | ||||
|             } | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue