diff --git a/rolebuttons.py b/rolebuttons.py index 7868805..88590bf 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -20,9 +20,9 @@ class RoleView(nextcord.ui.View): button.callback = self.buttoncallback self.add_item(button) - async def buttoncallback(self, interaction: nextcord.Interaction) -> None: - await interaction.response.send_message(f"user requested role", ephemeral=True) - return + async def buttoncallback(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None: + await interaction.response.send_message(f"user requested role {button.custom_id}", ephemeral=True) + return