Retrait de l'option mot de passe de la commande signaler et suggerer bug/fonctionnalité
This commit is contained in:
parent
a611f1beec
commit
702ad29822
1 changed files with 2 additions and 8 deletions
|
|
@ -251,17 +251,11 @@ class BugReport(commands.Cog):
|
|||
app_commands.Choice(name="Haute", value="High"),
|
||||
app_commands.Choice(name="Urgente", value="Urgent"),
|
||||
])
|
||||
async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str], mot_de_passe: str):
|
||||
if mot_de_passe != "01thisma":
|
||||
await interaction.response.send_message("❌ Mot de passe incorrect. Vous n'êtes pas autorisé à signaler un bug.", ephemeral=True)
|
||||
return
|
||||
async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str]):
|
||||
await interaction.response.send_modal(BugReportModal(priority))
|
||||
|
||||
@app_commands.command(name="suggerer_fonctionnalite", description="Proposer une nouvelle fonctionnalité pour le bot")
|
||||
async def suggerer_fonctionnalite(self, interaction: discord.Interaction, mot_de_passe: str):
|
||||
if mot_de_passe != "01thisma":
|
||||
await interaction.response.send_message("❌ Mot de passe incorrect.", ephemeral=True)
|
||||
return
|
||||
async def suggerer_fonctionnalite(self, interaction: discord.Interaction):
|
||||
await interaction.response.send_modal(FeatureSuggestionModal())
|
||||
|
||||
async def setup(bot):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue