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