mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix unlinking deleted accounts
This commit is contained in:
parent
3ba6a115f0
commit
4311cb3ad1
2 changed files with 20 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue