From 8848a7104765706d1cfe50f76da068255e391f04 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 7 Sep 2018 21:33:27 +0200 Subject: [PATCH] Disable avatar previews for now --- src/pluralkit/bot/commands/member_commands.py | 8 ++++---- src/pluralkit/bot/commands/system_commands.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pluralkit/bot/commands/member_commands.py b/src/pluralkit/bot/commands/member_commands.py index 3252b39d..d899ced8 100644 --- a/src/pluralkit/bot/commands/member_commands.py +++ b/src/pluralkit/bot/commands/member_commands.py @@ -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 diff --git a/src/pluralkit/bot/commands/system_commands.py b/src/pluralkit/bot/commands/system_commands.py index db39f5e9..7b239017 100644 --- a/src/pluralkit/bot/commands/system_commands.py +++ b/src/pluralkit/bot/commands/system_commands.py @@ -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