mirror of
				https://github.com/aydenjahola/discord-multipurpose-bot.git
				synced 2025-11-04 08:11:34 +00:00 
			
		
		
		
	make tracker score only show in current stats as doesnt exist in all acts
This commit is contained in:
		
							parent
							
								
									2ed031ec7e
								
							
						
					
					
						commit
						70ba2ed970
					
				
					 1 changed files with 13 additions and 9 deletions
				
			
		| 
						 | 
					@ -79,14 +79,18 @@ module.exports = {
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            name: "🎯 Headshot Percentage",
 | 
					            name: "🎯 Headshot Percentage",
 | 
				
			||||||
            value: `${data.headshot_percentage}%`,
 | 
					            value: `${data.headshot_percentage}%`,
 | 
				
			||||||
          },
 | 
					          }
 | 
				
			||||||
          {
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      // Add the Tracker Score field only if statsType is "current"
 | 
				
			||||||
 | 
					      if (statsType === "current") {
 | 
				
			||||||
 | 
					        statsEmbed.addFields({
 | 
				
			||||||
          name: "💯 Tracker Score",
 | 
					          name: "💯 Tracker Score",
 | 
				
			||||||
          value: `${data.tracker_score}/1000`,
 | 
					          value: `${data.tracker_score}/1000`,
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
        )
 | 
					
 | 
				
			||||||
        .setTimestamp()
 | 
					      statsEmbed.setTimestamp().setFooter({
 | 
				
			||||||
        .setFooter({
 | 
					 | 
				
			||||||
        text: "Valorant Stats API made by Ayden",
 | 
					        text: "Valorant Stats API made by Ayden",
 | 
				
			||||||
        iconURL: interaction.guild.iconURL(),
 | 
					        iconURL: interaction.guild.iconURL(),
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue