Ajout de la monétisation V0.1
This commit is contained in:
parent
cd0fc4c488
commit
879355f792
29 changed files with 698 additions and 72 deletions
|
|
@ -9,6 +9,7 @@ from typing import Optional
|
|||
from src.logger import kuby_logger
|
||||
import time
|
||||
from datetime import datetime, timezone
|
||||
from utils.premium import check_premium_tier
|
||||
|
||||
# Dictionnaire global pour suivre les renommages de salons
|
||||
# Format: {channel_id: [timestamp1, timestamp2, ...]}
|
||||
|
|
@ -1586,6 +1587,7 @@ class Ticket(commands.Cog):
|
|||
self.bot.add_view(ClosedTicketView())
|
||||
|
||||
@commands.slash_command(name="ticket_whitelist", description="Envoie l'embed pour ouvrir un ticket de whitelist.")
|
||||
@check_premium_tier()
|
||||
async def ticket_whitelist(self, interaction: disnake.ApplicationCommandInteraction):
|
||||
"""Envoie l'embed avec le bouton d'ouverture de ticket"""
|
||||
if not is_staff_or_admin(interaction.user, interaction.guild):
|
||||
|
|
@ -1601,6 +1603,7 @@ class Ticket(commands.Cog):
|
|||
await interaction.response.send_message("✅ Embed des tickets envoyé.", ephemeral=True)
|
||||
|
||||
@commands.slash_command(name="ticket_whitelist_config", description="Configurer le système de tickets whitelist (Staff/Admin)")
|
||||
@check_premium_tier()
|
||||
async def ticket_whitelist_config(self, interaction: disnake.ApplicationCommandInteraction):
|
||||
"""Interface de configuration des tickets en Containers V2"""
|
||||
if not is_staff_or_admin(interaction.user, interaction.guild):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue