a
This commit is contained in:
parent
1837078c73
commit
f42b6ab3d0
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class PersoCommands(app_commands.Group):
|
||||||
@app_commands.command(name="lister",description="Liste tous les personnages")
|
@app_commands.command(name="lister",description="Liste tous les personnages")
|
||||||
async def list_characters(self,interaction:discord.Interaction):
|
async def list_characters(self,interaction:discord.Interaction):
|
||||||
#admin
|
#admin
|
||||||
if not interaction.guild.members[interaction.user.id].guild_permissions.administrator:
|
if not interaction.user.id == self.bot.owner_id:
|
||||||
await interaction.response.send_message("Vous n'avez pas la permission d'exécuter cette commande",ephemeral=True)
|
await interaction.response.send_message("Vous n'avez pas la permission d'exécuter cette commande",ephemeral=True)
|
||||||
return
|
return
|
||||||
print("perso list")
|
print("perso list")
|
||||||
|
|
Loading…
Reference in a new issue