Update Help.cs
This commit is contained in:
parent
fdba24c27c
commit
27d576b0f3
@ -93,13 +93,13 @@ namespace NadekoBot.Modules.Help
|
|||||||
.WithAuthor(eau => eau.WithName("Help")
|
.WithAuthor(eau => eau.WithName("Help")
|
||||||
.WithUrl("http://nadekobot.readthedocs.io/en/latest/Commands%20List/")
|
.WithUrl("http://nadekobot.readthedocs.io/en/latest/Commands%20List/")
|
||||||
.WithIconUrl(NadekoBot.Client.GetCurrentUser().AvatarUrl))
|
.WithIconUrl(NadekoBot.Client.GetCurrentUser().AvatarUrl))
|
||||||
.WithTitle("🔎 **Error**")
|
.WithTitle("🔎 **Sorry!**")
|
||||||
.WithDescription("I can't find that command.")
|
.WithDescription("I can't find that command.")
|
||||||
.WithColor(NadekoBot.ErrorColor);
|
.WithColor(NadekoBot.ErrorColor);
|
||||||
await channel.EmbedAsync(erro.Build());
|
await channel.EmbedAsync(erro.Build());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var str = $"ℹ️ **Command:** `{com.Text}`";
|
var str = $"ℹ️ **Command:** `{com.Text}`";
|
||||||
var alias = com.Aliases.Skip(1).FirstOrDefault();
|
var alias = com.Aliases.Skip(1).FirstOrDefault();
|
||||||
if (alias != null)
|
if (alias != null)
|
||||||
str += $" / `{alias}`";
|
str += $" / `{alias}`";
|
||||||
@ -109,7 +109,7 @@ namespace NadekoBot.Modules.Help
|
|||||||
.WithIconUrl(NadekoBot.Client.GetCurrentUser().AvatarUrl))
|
.WithIconUrl(NadekoBot.Client.GetCurrentUser().AvatarUrl))
|
||||||
.WithTitle(str)
|
.WithTitle(str)
|
||||||
.WithDescription($"{ string.Format(com.Summary, com.Module.Prefix)}{ GetCommandRequirements(com)}")
|
.WithDescription($"{ string.Format(com.Summary, com.Module.Prefix)}{ GetCommandRequirements(com)}")
|
||||||
.AddField(fb => fb.WithIndex(1).WithName("**Usage:**").WithValue($"{string.Format(com.Remarks, com.Module.Prefix)}").WithIsInline(false))
|
.AddField(fb => fb.WithIndex(1).WithName("**Usage**").WithValue($"{string.Format(com.Remarks, com.Module.Prefix)}").WithIsInline(false))
|
||||||
.WithColor(NadekoBot.OkColor);
|
.WithColor(NadekoBot.OkColor);
|
||||||
if (com != null)
|
if (com != null)
|
||||||
await channel.EmbedAsync(embed.Build()).ConfigureAwait(false);
|
await channel.EmbedAsync(embed.Build()).ConfigureAwait(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user