🐛 fix empty message bug for attachments
This commit is contained in:
		
							parent
							
								
									9b59296af5
								
							
						
					
					
						commit
						624a4d5694
					
				| @ -41,7 +41,7 @@ export async function handleMessage(opts: Partial<Message>) { | ||||
| 		opts.type = MessageType.REPLY; | ||||
| 	} | ||||
| 
 | ||||
| 	if (!opts.content && !opts.embeds?.length) { | ||||
| 	if (!opts.content && !opts.embeds?.length && !opts.attachments?.length && !opts.stickers?.length && !opts.activity) { | ||||
| 		throw new HTTPError("Empty messages are not allowed", 50006); | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy