Merge pull request #200 from 13xforever/vnext

Make !explain update consistent
This commit is contained in:
Ilya 2019-02-01 05:11:52 +05:00 committed by GitHub
commit f1168e24ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;