Poll will now properly show a question when it's started
This commit is contained in:
parent
e6e30f217b
commit
071623c2b9
@ -18,7 +18,6 @@ namespace NadekoBot.Common.Attributes
|
|||||||
var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage;
|
var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage;
|
||||||
return string.Join(" or ", usage
|
return string.Join(" or ", usage
|
||||||
.Select(x => Format.Code(x)));
|
.Select(x => Format.Code(x)));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@ namespace NadekoBot.Common.ShardCom
|
|||||||
{
|
{
|
||||||
public class ShardComMessage
|
public class ShardComMessage
|
||||||
{
|
{
|
||||||
|
|
||||||
public int ShardId { get; set; }
|
public int ShardId { get; set; }
|
||||||
public ConnectionState ConnectionState { get; set; }
|
public ConnectionState ConnectionState { get; set; }
|
||||||
public int Guilds { get; set; }
|
public int Guilds { get; set; }
|
||||||
|
@ -37,7 +37,9 @@ namespace NadekoBot.Modules.Games
|
|||||||
await Context.Channel
|
await Context.Channel
|
||||||
.EmbedAsync(new EmbedBuilder()
|
.EmbedAsync(new EmbedBuilder()
|
||||||
.WithTitle(GetText("poll_created", Context.User.ToString()))
|
.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)}"))))
|
.Select(x => $"`{x.Index + 1}.` {Format.Bold(x.Text)}"))))
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user