mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
- Reworked embed builder
- Use IEmbedBuilderService to create embed builders - Wrapped embed builder and using IEmbedBuilder
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user