better names

This commit is contained in:
Zodiac 2025-02-12 23:38:47 -08:00
parent 148302ac29
commit 55e35fb20b

View File

@ -190,5 +190,5 @@ class Async:
"""Retrieve the list of users in a channel.""" """Retrieve the list of users in a channel."""
result = await self.who(target) result = await self.who(target)
if result and 'users' in result: if result and 'users' in result:
return {'names': [user['nick'] for user in result['users']]} return {'names': result['users']}
return {'names': []} return {'names': []}