mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
Add clickable account tags on pk;system card
This commit is contained in:
parent
b7d648935d
commit
f978029137
1 changed files with 5 additions and 2 deletions
|
|
@ -97,8 +97,11 @@ async def system_card(conn, client: discord.Client, system: System, is_own_syste
|
|||
|
||||
account_names = []
|
||||
for account_id in await system.get_linked_account_ids(conn):
|
||||
account = await client.get_user_info(account_id)
|
||||
account_names.append("{}#{}".format(account.name, account.discriminator))
|
||||
try:
|
||||
account = await client.get_user_info(account_id)
|
||||
account_names.append("{} ({}#{})".format(account_id, account.name, account.discriminator))
|
||||
except discord.NotFound:
|
||||
account_names.append("(deleted account {})".format(account_id))
|
||||
|
||||
card.add_field(name="Linked accounts", value=truncate_field_body("\n".join(account_names)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue