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)
This commit is contained in:
pacnpal
2024-11-15 19:02:51 +00:00
parent 971d52bd00
commit 780be9e391

View File

@@ -16,9 +16,10 @@ class QueueItem:
"""Represents an item in the video processing queue""" """Represents an item in the video processing queue"""
url: str url: str
message_id: str message_id: int # Changed to int for Discord ID
channel_id: str channel_id: int # Changed to int for Discord ID
user_id: str 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) added_at: datetime = field(default_factory=datetime.utcnow)
status: str = "pending" status: str = "pending"
retries: int = 0 retries: int = 0