cogs/messages.py
async def track(message, author=None):
    """ Marks a message in the database so that it will be automatically
        deleted if the sender or an admin reacts with the 'trash' emoji
    """
    await message.add_reaction(CONSTANTS.REACTION_DELETE)
    sql_db = SQLConnection()
    aid = 0
    if author:
        aid = author.id
    with SQLCursor(sql_db) as cur:
                cur.execute("INSERT INTO tracked_messages (messid, sender_uid, track_time) VALUES (?, ?, ?);", (message.id, aid, message.created_at))
 Marks a message in the database so that it will be automatically
        deleted if the sender or an admin reacts with the 'trash' emoji
    
Marks a message in the database so that it will be automatically
deleted if the sender or an admin reacts with the 'trash' emoji
Marks a message in the database so that it will be automatically deleted if the sender or an admin reacts with the ' trash ' emoji
async def track(message, author=None):
    await message.add_reaction(CONSTANTS.REACTION_DELETE)
    sql_db = SQLConnection()
    aid = 0
    if author:
        aid = author.id
    with SQLCursor(sql_db) as cur:
                cur.execute("INSERT INTO tracked_messages (messid, sender_uid, track_time) VALUES (?, ?, ?);", (message.id, aid, message.created_at))
async def track ( message , author = None ) : await message . add_reaction ( CONSTANTS . REACTION_DELETE ) sql_db = SQLConnection ( ) aid = 0 if author : aid = author . id with SQLCursor ( sql_db ) as cur : cur . execute ( "INSERT INTO tracked_messages (messid, sender_uid, track_time) VALUES (?, ?, ?);" , ( message . id , aid , message . created_at ) )
Marks a message in the database so that it will be automatically
deleted if the sender or an admin reacts with the 'trash' emoji
Marks a message in the database so that it will be automatically deleted if the sender or an admin reacts with the ' trash ' emoji
""" Marks a message in the database so that it will be automatically
        deleted if the sender or an admin reacts with the 'trash' emoji
    """
message
author