guildinfo: oop
This commit is contained in:
		
							parent
							
								
									494e7dec0a
								
							
						
					
					
						commit
						709c0f1870
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -101,9 +101,9 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
 | 
			
		|||
    if (profile.search_terms) {
 | 
			
		||||
      traits = profile.search_terms.map((term) => `[\u2005${term}\u2005]`).join(" ");
 | 
			
		||||
    } else if (profile.traits) {
 | 
			
		||||
      traits = profile.traits.map(
 | 
			
		||||
        (term) => `[\u2005${term.emoji_name ? `:${term.emoji_name}: ` : ""}${term.label}\u2005]`
 | 
			
		||||
      );
 | 
			
		||||
      traits = profile.traits
 | 
			
		||||
        .map((term) => `[\u2005${term.emoji_name ? `:${term.emoji_name}: ` : ""}${term.label}\u2005]`)
 | 
			
		||||
        .join(" ");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const gamesLeft = games.slice(0, Math.ceil(games.length / 2)).join("\n");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue