Yet another bugfix in !urban

This commit is contained in:
Runebaas 2017-11-16 17:33:07 +01:00
parent 14fcf74aea
commit fb169738fe
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -52,7 +52,10 @@ namespace Geekbot.net.Commands
eb.AddField("Example", definition.example ?? "(no example given...)");
eb.AddInlineField("Upvotes", definition.thumbs_up);
eb.AddInlineField("Downvotes", definition.thumbs_down);
eb.AddField("Tags", string.Join(", ", definitions.tags));
if (definitions.tags.Length > 0)
{
eb.AddField("Tags", string.Join(", ", definitions.tags));
}
await ReplyAsync("", false, eb.Build());
}