From 5f28c1a86dd82102cf51929944930245fc663468 Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 9 Aug 2024 10:30:36 -0400 Subject: [PATCH] update --- rolebuttons.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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