From 20e2d1d58180137c88a6ae6f0e63859cf83926a1 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Mon, 20 Jan 2025 13:22:26 +0100 Subject: [PATCH] fix(docs): update to the correct way to do embed fields --- .../modules/commandsnext/customization/help_formatter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisCatSharp.Docs/articles/modules/commandsnext/customization/help_formatter.md b/DisCatSharp.Docs/articles/modules/commandsnext/customization/help_formatter.md index cb908ea2ff..fb221e64b9 100644 --- a/DisCatSharp.Docs/articles/modules/commandsnext/customization/help_formatter.md +++ b/DisCatSharp.Docs/articles/modules/commandsnext/customization/help_formatter.md @@ -32,7 +32,7 @@ public class CustomHelpFormatter : BaseHelpFormatter public override BaseHelpFormatter WithCommand(Command command) { - // _embed.AddField(command.Name, command.Description); + // _embed.AddField(new DiscordEmbedField(command.Name, command.Description)); // _strBuilder.AppendLine($"{command.Name} - {command.Description}"); return this; @@ -42,7 +42,7 @@ public class CustomHelpFormatter : BaseHelpFormatter { foreach (var cmd in cmds) { - // _embed.AddField(cmd.Name, cmd.Description); + // _embed.AddField(new DiscordEmbedField(cmd.Name, cmd.Description)); // _strBuilder.AppendLine($"{cmd.Name} - {cmd.Description}"); }