mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Cleaned up embedbuilder calls to use parameters instead of footer builder
This commit is contained in:
		@@ -170,9 +170,9 @@ namespace NadekoBot.Extensions
 | 
			
		||||
        public static EmbedBuilder AddPaginatedFooter(this EmbedBuilder embed, int curPage, int? lastPage)
 | 
			
		||||
        {
 | 
			
		||||
            if (lastPage != null)
 | 
			
		||||
                return embed.WithFooter(efb => efb.WithText($"{curPage + 1} / {lastPage + 1}"));
 | 
			
		||||
                return embed.WithFooter($"{curPage + 1} / {lastPage + 1}");
 | 
			
		||||
            else
 | 
			
		||||
                return embed.WithFooter(efb => efb.WithText(curPage.ToString()));
 | 
			
		||||
                return embed.WithFooter(curPage.ToString());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public static EmbedBuilder WithOkColor(this EmbedBuilder eb) =>
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@ namespace NadekoBot.Extensions
 | 
			
		||||
            if (url != null && Uri.IsWellFormedUriString(url, UriKind.Absolute))
 | 
			
		||||
                eb.WithUrl(url);
 | 
			
		||||
            if (!string.IsNullOrWhiteSpace(footer))
 | 
			
		||||
                eb.WithFooter(efb => efb.WithText(footer));
 | 
			
		||||
                eb.WithFooter(footer);
 | 
			
		||||
            return ch.SendMessageAsync("", embed: eb.Build());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -38,7 +38,7 @@ namespace NadekoBot.Extensions
 | 
			
		||||
            if (url != null && Uri.IsWellFormedUriString(url, UriKind.Absolute))
 | 
			
		||||
                eb.WithUrl(url);
 | 
			
		||||
            if (!string.IsNullOrWhiteSpace(footer))
 | 
			
		||||
                eb.WithFooter(efb => efb.WithText(footer));
 | 
			
		||||
                eb.WithFooter(footer);
 | 
			
		||||
            return ch.SendMessageAsync("", embed: eb.Build());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user