utility.decoration: fix double embed for decor only
This commit is contained in:
		
							parent
							
								
									5fdcb094c6
								
							
						
					
					
						commit
						9ba485083e
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -744,7 +744,9 @@ decoration.callback = async function (msg, line, [user]) {
 | 
			
		|||
  decorEmbed.image = {url: decor};
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
    embeds: [baseEmbed, decor && decorEmbed].filter((x) => x != null),
 | 
			
		||||
    embeds: [normalUrl && baseEmbed, decor && decorEmbed].filter(
 | 
			
		||||
      (x) => x != null
 | 
			
		||||
    ),
 | 
			
		||||
  };
 | 
			
		||||
};
 | 
			
		||||
hf.registerCommand(decoration);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue