commandDispatcher: apparently eris has polyfill for Message.embed
This commit is contained in:
		
							parent
							
								
									fd7990aa3c
								
							
						
					
					
						commit
						f99780c297
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -93,6 +93,7 @@ async function CommandDispatcher(msg) {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (response.embed) {
 | 
					        if (response.embed) {
 | 
				
			||||||
          response.embeds = [...(response.embeds ?? []), response.embed];
 | 
					          response.embeds = [...(response.embeds ?? []), response.embed];
 | 
				
			||||||
 | 
					          delete response.embed;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (response.embeds) {
 | 
					        if (response.embeds) {
 | 
				
			||||||
          for (const embed of response.embeds) {
 | 
					          for (const embed of response.embeds) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue