Fix saving links after they've been deleted

This commit is contained in:
Nexus 2024-01-24 21:23:10 +00:00
parent 7d87628ea2
commit 5f662c1613

View file

@ -106,6 +106,10 @@ class YTDLCog(commands.Cog):
""" """
INSERT INTO downloads (key, message_id, channel_id, webpage_url, format_id, attachment_index) INSERT INTO downloads (key, message_id, channel_id, webpage_url, format_id, attachment_index)
VALUES (?, ?, ?, ?, ?, ?) VALUES (?, ?, ?, ?, ?, ?)
ON CONFLICT (key) DO UPDATE SET
message_id=excluded.message_id,
channel_id=excluded.channel_id,
attachment_index=excluded.attachment_index
""", """,
(_hash, message.id, message.channel.id, webpage_url, format_id, attachment_index) (_hash, message.id, message.channel.id, webpage_url, format_id, attachment_index)
) )