mirror of https://gitlab.com/litecord/litecord.git
channel.messages: simplify data.get call
This commit is contained in:
parent
a93090ddbc
commit
e68f212c9e
|
|
@ -191,7 +191,7 @@ async def create_message(channel_id: int, actual_guild_id: int,
|
||||||
|
|
||||||
data['nonce'],
|
data['nonce'],
|
||||||
MessageType.DEFAULT.value,
|
MessageType.DEFAULT.value,
|
||||||
data.get('embeds', []) or []
|
data.get('embeds') or []
|
||||||
)
|
)
|
||||||
|
|
||||||
return message_id
|
return message_id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue