Update Help.cs

This commit is contained in:
samvaio 2016-12-04 21:46:48 +05:30 committed by GitHub
parent 5b8285d21b
commit 9facdb27d7

View File

@ -99,15 +99,14 @@ namespace NadekoBot.Modules.Help
await channel.EmbedAsync(erro.Build());
return;
}
var str = $"**{com.Text}**";
var str = $"**`{com.Text}`";
var alias = com.Aliases.Skip(1).FirstOrDefault();
if (alias != null)
str += $" / **`{alias}`**";
str += $" / `{alias}`**";
var embed = new EmbedBuilder()
.WithAuthor(eau => eau.WithName("Command")
.WithUrl("http://nadekobot.readthedocs.io/en/latest/Commands%20List/")
.WithIconUrl(NadekoBot.Client.GetCurrentUser().AvatarUrl))
//.WithDescription(str)
//.WithTitle(str)
//.WithDescription($"{ string.Format(com.Summary, com.Module.Prefix)}{ GetCommandRequirements(com)}")
.AddField(fb => fb.WithIndex(1).WithName(str).WithValue($"{ string.Format(com.Summary, com.Module.Prefix)} { GetCommandRequirements(com)}").WithIsInline(true))