mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Improved logic of role display on info.
Co-authored-by: Mijyuoon <mijuoon@gmail.com>
This commit is contained in:
		
							parent
							
								
									baf17e6c76
								
							
						
					
					
						commit
						74d36e36b2
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -183,11 +183,10 @@ export default new Command({ | ||||||
|                     `**❯ Server Join Date:** ${moment(member.joinedAt).format("LL LTS")}`, |                     `**❯ Server Join Date:** ${moment(member.joinedAt).format("LL LTS")}`, | ||||||
|                     `**❯ Hoist Role:** ${member.roles.hoist ? member.roles.hoist.name : "None"}`, |                     `**❯ Hoist Role:** ${member.roles.hoist ? member.roles.hoist.name : "None"}`, | ||||||
|                     `**❯ Roles:** [${roles.length}]: ${ |                     `**❯ Roles:** [${roles.length}]: ${ | ||||||
|                         roles.length < 10 |                         roles.length == 0 ? "None" | ||||||
|  |                             : roles.length <= 10 | ||||||
|                                 ? roles.join(", ") |                                 ? roles.join(", ") | ||||||
|                             : roles.length > 10 |                                 : trimArray(roles).join(", ") | ||||||
|                             ? trimArray(roles) |  | ||||||
|                             : "None" |  | ||||||
|                     }` |                     }` | ||||||
|                 ]); |                 ]); | ||||||
|             $.channel.send(embed); |             $.channel.send(embed); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue