mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Fixed %users% and %shard.usercount% placeholders not showing correct member count
This commit is contained in:
		@@ -177,13 +177,13 @@ namespace NadekoBot.Common.Replacements
 | 
			
		||||
            /*OBSOLETE*/
 | 
			
		||||
            _reps.TryAdd("%servers%", () => c.Guilds.Count.ToString());
 | 
			
		||||
#if !GLOBAL_NADEKO
 | 
			
		||||
            _reps.TryAdd("%users%", () => c.Guilds.Sum(s => s.Users.Count).ToString());
 | 
			
		||||
            _reps.TryAdd("%users%", () => c.Guilds.Sum(g => g.MemberCount).ToString());
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
            /*NEW*/
 | 
			
		||||
            _reps.TryAdd("%shard.servercount%", () => c.Guilds.Count.ToString());
 | 
			
		||||
#if !GLOBAL_NADEKO
 | 
			
		||||
            _reps.TryAdd("%shard.usercount%", () => c.Guilds.Sum(s => s.Users.Count).ToString());
 | 
			
		||||
            _reps.TryAdd("%shard.usercount%", () => c.Guilds.Sum(g => g.MemberCount).ToString());
 | 
			
		||||
#endif
 | 
			
		||||
            _reps.TryAdd("%shard.id%", () => c.ShardId.ToString());
 | 
			
		||||
            return this;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user