Cambio 1
This commit is contained in:
7
main.py
7
main.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user