mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Added %server.icon% placeholder
This commit is contained in:
		@@ -55,6 +55,7 @@ public class ReplacementBuilder
 | 
			
		||||
        _reps.TryAdd("%server%", () => g is null ? "DM" : g.Name);
 | 
			
		||||
        _reps.TryAdd("%server.id%", () => g is null ? "DM" : g.Id.ToString());
 | 
			
		||||
        _reps.TryAdd("%server.name%", () => g is null ? "DM" : g.Name);
 | 
			
		||||
        _reps.TryAdd("%server.icon%", () => g is null ? null : g.IconUrl);
 | 
			
		||||
        _reps.TryAdd("%server.members%", () => g is { } sg ? sg.MemberCount.ToString() : "?");
 | 
			
		||||
        _reps.TryAdd("%server.boosters%", () => g.PremiumSubscriptionCount.ToString());
 | 
			
		||||
        _reps.TryAdd("%server.boost_level%", () => ((int)g.PremiumTier).ToString());
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,6 @@ public class CommandMapService : IInputTransformer, INService
 | 
			
		||||
        return count;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // todo bank take all
 | 
			
		||||
    public async Task<string> TransformInput(
 | 
			
		||||
        IGuild guild,
 | 
			
		||||
        IMessageChannel channel,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user