mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix error showing system card with deleted linked account
This commit is contained in:
parent
382f533dda
commit
0a8aeebb23
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ namespace PluralKit.Bot {
|
|||
var accounts = await _systems.GetLinkedAccountIds(system);
|
||||
|
||||
// Fetch/render info for all accounts simultaneously
|
||||
var users = await Task.WhenAll(accounts.Select(async uid => (await _client.GetUserAsync(uid)).NameAndMention() ?? $"(deleted account {uid})"));
|
||||
var users = await Task.WhenAll(accounts.Select(async uid => (await _client.GetUserAsync(uid))?.NameAndMention() ?? $"(deleted account {uid})"));
|
||||
|
||||
var eb = new EmbedBuilder()
|
||||
.WithColor(Color.Blue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue