Fix missing ID error

This commit is contained in:
acw0 2020-07-25 06:25:45 -04:00 committed by Astrid
parent c20c4dab42
commit 687dd23234

View File

@ -101,7 +101,7 @@ namespace PluralKit.Bot {
}
else
{
var guildIdStr = ctx.RemainderOrNull() ?? throw new PKSyntaxError("You must pass a server ID or run this command as .");
var guildIdStr = ctx.RemainderOrNull() ?? throw new PKSyntaxError("You must pass a server ID or run this command in a server.");
if (!ulong.TryParse(guildIdStr, out var guildId))
throw new PKSyntaxError($"Could not parse `{guildIdStr}` as an ID.");