- Reworked embed builder

- Use IEmbedBuilderService to create embed builders
- Wrapped embed builder and using IEmbedBuilder
This commit is contained in:
Kwoth
2021-07-09 22:23:19 +02:00
parent 5b4daa9dd3
commit 5e4754fa40
103 changed files with 730 additions and 540 deletions

View File

@@ -113,11 +113,11 @@ namespace NadekoBot.Modules.Games
if (!items.Any())
{
return new EmbedBuilder().WithErrorColor()
return _eb.Create().WithErrorColor()
.WithDescription("-");
}
return items.Aggregate(new EmbedBuilder().WithOkColor(),
return items.Aggregate(_eb.Create().WithOkColor(),
(eb, i) => eb.AddField(i.GuildId.ToString(), i.ChannelId));
}, enabledIn.Count(), 9);
}