update
This commit is contained in:
parent
0cc57c78d5
commit
5f28c1a86d
1 changed files with 3 additions and 3 deletions
|
@ -20,9 +20,9 @@ class RoleView(nextcord.ui.View):
|
||||||
button.callback = self.buttoncallback
|
button.callback = self.buttoncallback
|
||||||
self.add_item(button)
|
self.add_item(button)
|
||||||
|
|
||||||
async def buttoncallback(self, interaction: nextcord.Interaction) -> None:
|
async def buttoncallback(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None:
|
||||||
await interaction.response.send_message(f"user requested role", ephemeral=True)
|
await interaction.response.send_message(f"user requested role {button.custom_id}", ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue