utility.lookinvite: fix missing name and add member count
forgot to add with_counts to my test url so didnt realize fields were there for those
This commit is contained in:
		
							parent
							
								
									66c59292f5
								
							
						
					
					
						commit
						e2bcdb6adc
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -514,7 +514,17 @@ lookupinvite.callback = async function (msg, line) {
 | 
			
		|||
      embed.fields.push(
 | 
			
		||||
        {
 | 
			
		||||
          name: "Channel",
 | 
			
		||||
          value: `**${invite.channel.name}** (${invite.channel.id})`,
 | 
			
		||||
          value: `**${
 | 
			
		||||
            invite.channel.name ??
 | 
			
		||||
            invite.channel.recipients
 | 
			
		||||
              .map((member) => member.username)
 | 
			
		||||
              .join(", ")
 | 
			
		||||
          }** (${invite.channel.id})`,
 | 
			
		||||
          inline: true,
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          name: "Member Count",
 | 
			
		||||
          value: `${STATUS_ICONS.offline}${invite.approximate_member_count} members`,
 | 
			
		||||
          inline: true,
 | 
			
		||||
        },
 | 
			
		||||
        expires
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue