Allow calling frontpercent with arguments containing spaces

Closes #113 (for real this time).
This commit is contained in:
Ske 2019-07-15 21:53:55 +02:00
parent b6ba24d171
commit 66690423e8

View File

@ -193,7 +193,7 @@ namespace PluralKit.Bot.Commands
[Command("frontpercent")]
[Alias("frontbreakdown", "frontpercent", "front%", "fp")]
[Remarks("system [system] frontpercent [duration]")]
public async Task SystemFrontPercent(string durationStr = "30d")
public async Task SystemFrontPercent([Remainder] string durationStr = "30d")
{
var system = ContextEntity ?? Context.SenderSystem;
if (system == null) throw Errors.NoSystemError;