forked from cadence/out-of-your-element
		
	Don't search for excessively long text
This commit is contained in:
		
							parent
							
								
									e0c0b7c9c2
								
							
						
					
					
						commit
						d5d51b4e7e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -449,7 +449,7 @@ async function checkWrittenMentions(content, senderMxid, roomID, guild, di) {
 | 
			
		|||
					allowedMentionsParse: ["everyone"]
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
		} else if (writtenMentionMatch[1].length < 40) { // the API supports up to 100 characters, but really if you're searching more than 40, something messed up
 | 
			
		||||
			const results = await di.snow.guild.searchGuildMembers(guild.id, {query: writtenMentionMatch[1]})
 | 
			
		||||
			if (results[0]) {
 | 
			
		||||
				assert(results[0].user)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue