Rework complet du système de ticket § focntinnnement partiel
This commit is contained in:
parent
93e2f9bb44
commit
dfec6b2418
75 changed files with 6424 additions and 1893 deletions
|
|
@ -273,7 +273,8 @@ class GuildTicketConfig:
|
|||
default_category: Default category ID
|
||||
log_channel_id: Channel for ticket logs
|
||||
archive_channel_id: Channel for archived transcripts
|
||||
staff_roles: Global staff roles
|
||||
staff_roles: Global staff roles (can manage tickets, access analytics, etc.)
|
||||
config_roles: Roles that can access the configuration panel (/ticketconfig)
|
||||
max_tickets_per_user: Global max tickets per user
|
||||
auto_close_enabled: Whether auto-close is enabled
|
||||
auto_close_days: Days before auto-close
|
||||
|
|
@ -292,6 +293,7 @@ class GuildTicketConfig:
|
|||
log_channel_id: Optional[int] = None
|
||||
archive_channel_id: Optional[int] = None
|
||||
staff_roles: List[str] = field(default_factory=list)
|
||||
config_roles: List[str] = field(default_factory=list)
|
||||
max_tickets_per_user: int = 5
|
||||
auto_close_enabled: bool = False
|
||||
auto_close_days: int = 7
|
||||
|
|
@ -311,6 +313,7 @@ class GuildTicketConfig:
|
|||
"log_channel_id": self.log_channel_id,
|
||||
"archive_channel_id": self.archive_channel_id,
|
||||
"staff_roles": self.staff_roles,
|
||||
"config_roles": self.config_roles,
|
||||
"max_tickets_per_user": self.max_tickets_per_user,
|
||||
"auto_close_enabled": self.auto_close_enabled,
|
||||
"auto_close_days": self.auto_close_days,
|
||||
|
|
@ -333,6 +336,7 @@ class GuildTicketConfig:
|
|||
log_channel_id=data.get("log_channel_id"),
|
||||
archive_channel_id=data.get("archive_channel_id"),
|
||||
staff_roles=data.get("staff_roles", []),
|
||||
config_roles=data.get("config_roles", []),
|
||||
max_tickets_per_user=data.get("max_tickets_per_user", 5),
|
||||
auto_close_enabled=data.get("auto_close_enabled", False),
|
||||
auto_close_days=data.get("auto_close_days", 7),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue