logging: go back to array
This commit is contained in:
		
							parent
							
								
									fb7d3cffe6
								
							
						
					
					
						commit
						43f46c5bfe
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -29,8 +29,8 @@ events.add("guildUpdate", "logging", async function (guild, oldGuild) {
 | 
			
		|||
 | 
			
		||||
  const oldFeatures = new Set(oldGuild.features);
 | 
			
		||||
  const newFeatures = new Set(guild.features);
 | 
			
		||||
  const featuresAdded = newFeatures.difference(oldFeatures);
 | 
			
		||||
  const featuresRemoved = oldFeatures.difference(newFeatures);
 | 
			
		||||
  const featuresAdded = Array.from(newFeatures.difference(oldFeatures));
 | 
			
		||||
  const featuresRemoved = Array.from(oldFeatures.difference(newFeatures));
 | 
			
		||||
 | 
			
		||||
  if (featuresAdded.length === 0 && featuresRemoved.length === 0) return;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue