mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: don't automatically prompt user to unlink the current account if no arguments are passed
This commit is contained in:
parent
0553e42eca
commit
7aaa89c65c
1 changed files with 1 additions and 3 deletions
|
|
@ -47,9 +47,7 @@ namespace PluralKit.Bot
|
|||
await using var conn = await _db.Obtain();
|
||||
|
||||
ulong id;
|
||||
if (!ctx.HasNext())
|
||||
id = ctx.Author.Id;
|
||||
else if (!ctx.MatchUserRaw(out id))
|
||||
if (!ctx.MatchUserRaw(out id))
|
||||
throw new PKSyntaxError("You must pass an account to link with (either ID or @mention).");
|
||||
|
||||
var accountIds = (await _repo.GetSystemAccounts(conn, ctx.System.Id)).ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue