From a15e9aa33108db6566c6c313e201b4d8f4b9b88d Mon Sep 17 00:00:00 2001 From: binlaab <71317374+binlaab@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:40:31 +0200 Subject: [PATCH] Cambio 1 --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index d9e21cb..cd5d513 100644 --- a/main.py +++ b/main.py @@ -62,6 +62,13 @@ async def delete(ctx, attr: discord.Option(str)): channel = bot.get_channel(1153429735527948399) msg = await channel.fetch_message(1153429808429158460) role = discord.utils.get(ctx.guild.roles, name="Admin") + foca = 518377522485002241 + if ctx.author.id == foca: + await msg.edit(content=f'{msg.content.replace(f"{NL}- {attr}", "")}') + await ctx.respond("Característica eliminada :(", ephemeral=True) + await send_log(f"Característica eliminada: {attr} por {ctx.user}") + return + if role not in ctx.author.roles or ctx.author.id == 676816739065004043: await ctx.respond("No tienes permiso para hacerlo!", ephemeral=True) return