guildinfo: guh
This commit is contained in:
		
							parent
							
								
									2167ae4725
								
							
						
					
					
						commit
						ee32491dc9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -371,7 +371,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
 | 
			
		|||
 | 
			
		||||
      if (features.length > 0) {
 | 
			
		||||
        let featuresList = "";
 | 
			
		||||
        let firstFeature = false;
 | 
			
		||||
        let firstFeature = true;
 | 
			
		||||
        for (const index in features) {
 | 
			
		||||
          const feature = features[index];
 | 
			
		||||
          if (featuresList.length + feature.length + 1 > 1024 || index === features.length - 1) {
 | 
			
		||||
| 
						 | 
				
			
			@ -380,8 +380,8 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
 | 
			
		|||
              value: featuresList.trim(),
 | 
			
		||||
              inline: true,
 | 
			
		||||
            });
 | 
			
		||||
            featuresList = "";
 | 
			
		||||
            if (!firstFeature) firstFeature = true;
 | 
			
		||||
            featuresList = feature + "\n";
 | 
			
		||||
            if (firstFeature === true) firstFeature = false;
 | 
			
		||||
          } else {
 | 
			
		||||
            featuresList += feature + "\n";
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue