Exemple #1
0
        public async Task ThemesList(CommandContext ctx)
        {
            string[] lightThemes = CarbonHandler.GetLightThemes();
            string[] darkThemes  = CarbonHandler.GetDarkThemes();

            var themesEmbed = new DiscordEmbedBuilder()
                              .WithTitle("Available themes")
                              .WithDescription("You can use these themes with the code command")
                              .AddField("Dark themes", $"> {string.Join("\n> ", darkThemes)}")
                              .AddField("Light Themes", $"> {string.Join("\n> ", lightThemes)}")
                              .WithColor(DisarisCosmetics.DisarisColor)
                              .Build();

            await ctx.Channel.SendMessageAsync(embed : themesEmbed);
        }