This commit is contained in:
GZod01 2024-12-15 17:06:01 +01:00
parent ed5889c847
commit 76e5a914dc

View file

@ -42,6 +42,10 @@ async def on_message(message:discord.Message):
await message.delete()
@bot.tree.command(name="s",description="Envoyer un message en tant que personnage")
@app_commands.user_install()
@app_commands.describe(id="Le nom court du personnage",message="Le message à envoyer")
@app_commands.allowed_contexts(guilds=True,dms=True,private_channels=True)
@app_commands.allowed_installs(guilds=True,dms=True)
async def say(interaction:discord.Interaction,id:str,message:str):
if not await say_message(interaction.user.id,interaction.guild.id,id,message,interaction.channel):
print("ok9")