logging: dont inline code no value
This commit is contained in:
		
							parent
							
								
									6b2b0d8d4b
								
							
						
					
					
						commit
						edbd039168
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -25,10 +25,10 @@ async function getLoggingChannel(guild) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function formatChange(before, after) {
 | 
					function formatChange(before, after) {
 | 
				
			||||||
  const beforeFormatted = before != null ? before : "<no value>";
 | 
					  const beforeFormatted = before != null ? `\`${before}\`` : "<no value>";
 | 
				
			||||||
  const afterFormatted = after != null ? after : "<no value>";
 | 
					  const afterFormatted = after != null ? `\`after\`` : "<no value>";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return `\`${beforeFormatted}\` -> \`${afterFormatted}\``;
 | 
					  return `${beforeFormatted} -> ${afterFormatted}`;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const WHITELISTED_EVENTS = new Set([
 | 
					const WHITELISTED_EVENTS = new Set([
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue