Untitled

mail@pastecode.io avatar
unknown
python
19 days ago
631 B
3
Indexable
Never
@tree.command(guild=discord.Object(id=1254562365316399195),name='expulsar',description='Expulsar usuário do servidor')
@commands.has_permissions(kick_members=True)
async def _expulsar(interaction:discord.Interaction, membro:discord.Member):
  if interaction.permissions.kick_members:
    canal = interaction.channel._get_channel(id_logs_kick_ban)
    embed = discord.Embed(
        description= f'{interaction.author.mention} expulsou {membro.mention}',
        color= 26367
    )
    await membro.kick()
    await canal.send(embed=embed)
  else:
      await interaction.send(embed = mensagempermissao, ephemeral=True)
Leave a Comment