mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Fixed an extra whitespace in usage part of command help if the command has no arguments
This commit is contained in:
@@ -126,11 +126,11 @@ public static class Extensions
|
|||||||
IBotStrings strings,
|
IBotStrings strings,
|
||||||
ulong? guildId,
|
ulong? guildId,
|
||||||
string prefix)
|
string prefix)
|
||||||
=> Array.ConvertAll(strings.GetCommandStrings(cmd.Remarks, guildId).Args,
|
=> Array.ConvertAll(strings.GetCommandStrings(cmd.Summary, guildId).Args,
|
||||||
arg => GetFullUsage(cmd.Name, arg, prefix));
|
arg => GetFullUsage(cmd.Name, arg, prefix));
|
||||||
|
|
||||||
private static string GetFullUsage(string commandName, string args, string prefix)
|
private static string GetFullUsage(string commandName, string args, string prefix)
|
||||||
=> $"{prefix}{commandName} {string.Format(args, prefix)}";
|
=> $"{prefix}{commandName} {string.Format(args, prefix)}".TrimEnd();
|
||||||
|
|
||||||
public static IEmbedBuilder AddPaginatedFooter(this IEmbedBuilder embed, int curPage, int? lastPage)
|
public static IEmbedBuilder AddPaginatedFooter(this IEmbedBuilder embed, int curPage, int? lastPage)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user