Untitled

mail@pastecode.io avatar
unknown
python
a month ago
725 B
1
Indexable
Never
@tree.command(guild=discord.Object(id=1251370282866704425),name="advertencia",description='Aplicar advertĂȘncia')
async def _aplicar_adv(interaction:discord.Interaction, membro:discord.Member):
    mod = interaction.guild.get_role(id_cargo_atendente)
    logschannel = interaction.guild.get_channel(id_canal_logs_adv_founder)
    cargo = interaction.guild.get_role(id_cargo_adv)
    idmembro = interaction.guild.get_role(id_cargo_membro)
    if interaction.permissions.kick_members:
        await interaction.response.send_modal(Registro_Adv())
        await membro.add_roles(cargo)
        await membro.remove_roles(idmembro)
    else:
        await interaction.response.send_message(mensagemerro, ephemeral=True)
Leave a Comment