mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +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();
|
await using var conn = await _db.Obtain();
|
||||||
|
|
||||||
ulong id;
|
ulong id;
|
||||||
if (!ctx.HasNext())
|
if (!ctx.MatchUserRaw(out id))
|
||||||
id = ctx.Author.Id;
|
|
||||||
else if (!ctx.MatchUserRaw(out id))
|
|
||||||
throw new PKSyntaxError("You must pass an account to link with (either ID or @mention).");
|
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();
|
var accountIds = (await _repo.GetSystemAccounts(conn, ctx.System.Id)).ToList();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue