channel.pins: use timestamp_ instead of .isoformat

This commit is contained in:
Luna Mendes 2018-11-22 16:25:26 -03:00
parent d376cb4fad
commit 7aff586790
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ from quart import Blueprint, current_app as app, jsonify
from litecord.auth import token_check
from litecord.blueprints.checks import channel_check, channel_perm_check
from litecord.snowflake import snowflake_datetime
from litecord.types import timestamp_
bp = Blueprint('channel_pins', __name__)
@ -58,7 +59,7 @@ async def add_pin(channel_id, message_id):
'channel', channel_id, 'CHANNEL_PINS_UPDATE',
{
'channel_id': str(channel_id),
'last_pin_timestamp': timestamp.isoformat()
'last_pin_timestamp': timestamp_(timestamp)
}
)