This commit is contained in:
insert 2024-08-09 10:30:36 -04:00
parent 0cc57c78d5
commit 5f28c1a86d
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -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