This commit is contained in:
binlaab
2023-10-27 17:40:31 +02:00
parent 7845f6311c
commit a15e9aa331

View File

@@ -62,6 +62,13 @@ async def delete(ctx, attr: discord.Option(str)):
channel = bot.get_channel(1153429735527948399) channel = bot.get_channel(1153429735527948399)
msg = await channel.fetch_message(1153429808429158460) msg = await channel.fetch_message(1153429808429158460)
role = discord.utils.get(ctx.guild.roles, name="Admin") 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: if role not in ctx.author.roles or ctx.author.id == 676816739065004043:
await ctx.respond("No tienes permiso para hacerlo!", ephemeral=True) await ctx.respond("No tienes permiso para hacerlo!", ephemeral=True)
return return