From 780be9e391ad7bde53ad6a0416ead6ffa1ba757e Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:02:51 +0000 Subject: [PATCH] Adding the missing guild_id field to the QueueItem class Changing user_id to author_id for consistency with the message handler Updating the field types from str to int for all Discord IDs (message_id, channel_id, author_id, guild_id) --- videoarchiver/queue/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/videoarchiver/queue/models.py b/videoarchiver/queue/models.py index 35eca56..4817daf 100644 --- a/videoarchiver/queue/models.py +++ b/videoarchiver/queue/models.py @@ -16,9 +16,10 @@ class QueueItem: """Represents an item in the video processing queue""" url: str - message_id: str - channel_id: str - user_id: str + message_id: int # Changed to int for Discord ID + channel_id: int # Changed to int for Discord ID + author_id: int # Changed to int for Discord ID + guild_id: int # Changed to int for Discord ID added_at: datetime = field(default_factory=datetime.utcnow) status: str = "pending" retries: int = 0