From f0e5f7714dcd957173dd983cdf107e9faeacc75e Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 9 Aug 2024 10:41:22 -0400 Subject: [PATCH] update --- rolebuttons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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