From e68f212c9e7dc51119013c55edc313c8d634aa1a Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 4 Apr 2019 12:53:26 -0300 Subject: [PATCH] channel.messages: simplify data.get call --- litecord/blueprints/channel/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/channel/messages.py b/litecord/blueprints/channel/messages.py index 6219386..6a49e9c 100644 --- a/litecord/blueprints/channel/messages.py +++ b/litecord/blueprints/channel/messages.py @@ -191,7 +191,7 @@ async def create_message(channel_id: int, actual_guild_id: int, data['nonce'], MessageType.DEFAULT.value, - data.get('embeds', []) or [] + data.get('embeds') or [] ) return message_id