mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Fix message links for long Nitro messages.
This commit is contained in:
		
							parent
							
								
									2040dbdefd
								
							
						
					
					
						commit
						1330b499c8
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -26,6 +26,10 @@ client.on("message", async (message) => { | ||||||
|         return message.channel.send(new MessageEmbed().setDescription("🚫 The message is empty.")); |         return message.channel.send(new MessageEmbed().setDescription("🚫 The message is empty.")); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     if (linkMessage.cleanContent.length > 2048) { | ||||||
|  |         return message.channel.send(new MessageEmbed().setDescription("🚫 This message is too long.")); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     const infoEmbed = new MessageEmbed() |     const infoEmbed = new MessageEmbed() | ||||||
|         .setAuthor( |         .setAuthor( | ||||||
|             linkMessage.author.username, |             linkMessage.author.username, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue