Fixed no response on -db ls.

This commit is contained in:
Sleepingpirates
2020-07-23 00:18:21 +00:00
parent d6882aceac
commit e1dada1f4b

View File

@@ -174,8 +174,12 @@ class MyClient(discord.Client):
id = int(peoples[1])
dbuser = client.get_user(id)
dbemail = peoples[2]
embed.add_field(name=f"**{index}. {dbuser.name}**", value=dbemail+'\n', inline=False)
table.add_row((index, dbuser.name, dbemail))
try:
username = dbuser.name
except:
username = "User Not Found."
embed.add_field(name=f"**{index}. {username}**", value=dbemail+'\n', inline=False)
table.add_row((index, username, dbemail))
if message.content.startswith('-db ls'):