Disable avatar previews for now

This commit is contained in:
Ske 2018-09-07 21:33:27 +02:00
parent 9fe0c0a95a
commit 8848a71047
2 changed files with 6 additions and 6 deletions

View File

@ -114,10 +114,10 @@ async def member_set(ctx: CommandContext):
await db.update_member_field(ctx.conn, member_id=member.id, field=db_prop, value=value)
response = CommandSuccess("{} {}'s {}.".format("Updated" if value else "Cleared", member.name, prop))
if prop == "avatar" and value:
response.set_image(url=value)
if prop == "color" and value:
response.colour = int(value, 16)
#if prop == "avatar" and value:
# response.set_image(url=value)
#if prop == "color" and value:
# response.colour = int(value, 16)
return response

View File

@ -103,8 +103,8 @@ async def system_set(ctx: CommandContext):
await db.update_system_field(ctx.conn, system_id=system.id, field=db_prop, value=value)
response = CommandSuccess("{} system {}.".format("Updated" if value else "Cleared", prop))
if prop == "avatar" and value:
response.set_image(url=value)
#if prop == "avatar" and value:
# response.set_image(url=value)
return response