Poll will now properly show a question when it's started

This commit is contained in:
Master Kwoth 2017-10-29 05:01:39 +01:00
parent e6e30f217b
commit 071623c2b9
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,6 @@ namespace NadekoBot.Common.Attributes
var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage;
return string.Join(" or ", usage
.Select(x => Format.Code(x)));
}
}
}

View File

@ -5,7 +5,6 @@ namespace NadekoBot.Common.ShardCom
{
public class ShardComMessage
{
public int ShardId { get; set; }
public ConnectionState ConnectionState { get; set; }
public int Guilds { get; set; }

View File

@ -37,7 +37,9 @@ namespace NadekoBot.Modules.Games
await Context.Channel
.EmbedAsync(new EmbedBuilder()
.WithTitle(GetText("poll_created", Context.User.ToString()))
.WithDescription(string.Join("\n", poll.Answers
.WithDescription(
Format.Bold(poll.Question) + "\n\n" +
string.Join("\n", poll.Answers
.Select(x => $"`{x.Index + 1}.` {Format.Bold(x.Text)}"))))
.ConfigureAwait(false);
else