Fix unlinking deleted accounts

This commit is contained in:
Ske
2020-01-25 18:08:35 +01:00
parent 3ba6a115f0
commit 4311cb3ad1
2 changed files with 20 additions and 7 deletions

View File

@@ -112,6 +112,19 @@ namespace PluralKit.Bot.CommandSystem
return null;
}
public bool MatchUserRaw(out ulong id)
{
id = 0;
var text = PeekArgument();
if (MentionUtils.TryParseUser(text, out var mentionId))
id = mentionId;
else if (ulong.TryParse(text, out var rawId))
id = rawId;
return id != 0;
}
public Task<PKSystem> PeekSystem() => MatchSystemInner();
public async Task<PKSystem> MatchSystem()