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
|
|
@ -2,6 +2,7 @@ import disnake
|
|||
from disnake.ext import commands
|
||||
from datetime import datetime
|
||||
from collections import deque
|
||||
from utils.premium import check_premium_tier
|
||||
|
||||
class SnipeCommands(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
|
|
@ -34,6 +35,7 @@ class SnipeCommands(commands.Cog):
|
|||
self.deleted_messages[channel_id].appendleft(message_data)
|
||||
|
||||
@commands.slash_command(name="snipe", description="Voir les derniers messages supprimés d'un salon")
|
||||
@check_premium_tier()
|
||||
async def snipe(self, interaction: disnake.ApplicationCommandInteraction,
|
||||
nombre: int = commands.Param(1, description="Nombre de messages à afficher (1-10, par défaut: 1)")):
|
||||
"""Retrieve deleted messages from the current channel"""
|
||||
|
|
@ -93,6 +95,7 @@ class SnipeCommands(commands.Cog):
|
|||
await interaction.response.send_message(embed=embed)
|
||||
|
||||
@commands.slash_command(name="snipeclear", description="Effacer l'historique des messages supprimés pour ce salon")
|
||||
@check_premium_tier()
|
||||
async def snipeclear(self, interaction: disnake.ApplicationCommandInteraction):
|
||||
"""Clear the deleted messages history for the current channel"""
|
||||
channel_id = interaction.channel.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue