From f1a9f4822bd40136fad51fb7d4e1e01bda4efdfa Mon Sep 17 00:00:00 2001 From: 13xforever Date: Fri, 1 Feb 2019 05:08:31 +0500 Subject: [PATCH] make !explain update consistent --- CompatBot/Commands/Explain.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CompatBot/Commands/Explain.cs b/CompatBot/Commands/Explain.cs index 26a4590c..8a3bfeba 100644 --- a/CompatBot/Commands/Explain.cs +++ b/CompatBot/Commands/Explain.cs @@ -189,7 +189,8 @@ namespace CompatBot.Commands await ctx.ReactWithAsync(Config.Reactions.Failure, $"Term `{term}` is not defined").ConfigureAwait(false); else { - item.Text = explanation ?? ""; + if (!string.IsNullOrEmpty(explanation)) + item.Text = explanation; if (attachment?.Length > 0) { item.Attachment = attachment;