misc.color: forgot encoding
This commit is contained in:
		
							parent
							
								
									d29be7a47f
								
							
						
					
					
						commit
						3d7b918130
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -630,7 +630,7 @@ searchInteraction.callback = async function (interaction) {
 | 
			
		|||
};
 | 
			
		||||
hf.registerCommand(searchInteraction);
 | 
			
		||||
 | 
			
		||||
const colornamesRaw = fs.readFileSync(resolve(__dirname, "../../data/colornames.csv")).split("\n");
 | 
			
		||||
const colornamesRaw = fs.readFileSync(resolve(__dirname, "../../data/colornames.csv"), "utf8").split("\n");
 | 
			
		||||
colornamesRaw.shift();
 | 
			
		||||
const colornamesMapped = colornamesRaw.map((line) => {
 | 
			
		||||
  const [hex, name] = line.split(",");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue