Cleaned up embedbuilder calls to use parameters instead of footer builder

This commit is contained in:
Kwoth
2021-07-07 22:52:47 +02:00
parent ac9f84715b
commit cbecd823c1
26 changed files with 199 additions and 153 deletions

View File

@@ -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());
}