mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
Fix missing ID error
This commit is contained in:
parent
c20c4dab42
commit
687dd23234
1 changed files with 1 additions and 1 deletions
|
|
@ -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.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue