#Button Permissions
1 messages · Page 1 of 1 (latest)
uh okay thanks
class test_button(discord.ui.View):
@discord.ui.button(label="Tets")
async def interaction_check(self, interaction: discord.Interaction):
if interaction.user != interaction.author:
print("Not Perms")
return
else:
await interaction.response.send_message(f"Test")
so like this?
interaction_check is a View method
not a button
you can also run the check in your button's callback whatever you prefer
oh
If your issue is fixed please use /close. It is is not you can continue using this thread :)