From 4532f992cd1b8377bf965b3db334714d44fbdc36 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 9 Oct 2021 19:48:54 +0200 Subject: [PATCH] Fixed field not preserving inline after string replacements. closes #308 --- src/NadekoBot/Common/Replacements/Replacer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Common/Replacements/Replacer.cs b/src/NadekoBot/Common/Replacements/Replacer.cs index f1de1dd6e..d80f43674 100644 --- a/src/NadekoBot/Common/Replacements/Replacer.cs +++ b/src/NadekoBot/Common/Replacements/Replacer.cs @@ -69,7 +69,8 @@ namespace NadekoBot.Common.Replacements var newF = new SmartTextEmbedField(); newF.Name = Replace(f.Name); newF.Value = Replace(f.Value); - fields.Add(newF); + newF.Inline = f.Inline; + fields.Add(newF);g } newEmbedData.Fields = fields.ToArray();