mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user