a
This commit is contained in:
parent
cffc98475d
commit
5ca76937f9
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@ from GammaRPBot_Define import GammaRPBot
|
||||||
import aiosqlite
|
import aiosqlite
|
||||||
import base64
|
import base64
|
||||||
import io
|
import io
|
||||||
|
from public_env import *
|
||||||
|
|
||||||
|
|
||||||
_sql_table="""CREATE TABLE personnages (
|
_sql_table="""CREATE TABLE personnages (
|
||||||
|
@ -89,7 +90,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,output_hidden:bool=False):
|
async def list_characters(self,interaction:discord.Interaction,output_hidden:bool=False):
|
||||||
#admin
|
#admin
|
||||||
if not interaction.user.id in self.bot.owner_ids:
|
if interaction.user.id !=super_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")
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
from private_env import *
|
from private_env import *
|
||||||
|
super_owner_id=690103250636243068
|
Loading…
Reference in a new issue