I have a problem with interactions of my discord bot in python, manually in server settings -> integrations -> (my bot) -> interaction I am able to determine what role can see this interaction, or on what channels it can be visible, when I try to do it manually in the script I am not able to. How can I do this in the script so that I don't have to do it manually and have these permissions set automatically? I tried using some permission settings, but nothing happened, and I kept seeing this interaction. I don't mean that someone could see it, use it and receive the answer "you can't use this interaction", but that they wouldn't see it at all if they don't have this role or are not on a given channel Under im giving u my strict interaction where i need to do this permissions @bot.tree.command(name="weryfikacja", description="Przepisz kod CAPTCHA, aby się zweryfikować.") async def weryfikacja(interaction: discord.Interaction, kod: str): role = interaction.guild.get_role(ROLE_ID) if role and role in interaction.user.roles: await interaction.response.send_message("✅ Już jesteś zweryfikowany!", ephemeral=True) return user_id = interaction.user.id if user_id not in user_captchas: await interaction.response.send_message("⚠ Nie masz wygenerowanego kodu CAPTCHA. Użyj najpierw przycisku `✅ Weryfikacja`.", ephemeral=True) return if kod.upper() == user_captchas[user_id]: if role: await interaction.user.add_roles(role) await interaction.response.send_message("✅ Weryfikacja zakończona sukcesem! Otrzymałeś rolę.", ephemeral=True) del user_captchas[user_id] else: await interaction.response.send_message("⚠ Błąd: Nie znaleziono roli!", ephemeral=True) else: await interaction.response.send_message("❌ Niepoprawny kod! Spróbuj ponownie.", ephemeral=True) Continue reading...