This commit is contained in:
insert 2024-08-10 16:19:48 -04:00
parent 09b0c63d39
commit 2dc257466b
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -68,7 +68,7 @@ class rolebutton(commands.Cog):
for r in res:
button = nextcord.ui.Button(label="r", style=nextcord.ButtonStyle.gray, custom_id=f"rolebutton:{r}")
button.callback = RoleView.buttoncallback
RoleView.add_item(button)
RoleView.add_item(RoleView,button)
await message.edit(view=RoleView(self.bot))
await interaction.response.send_message("Edited!", ephemeral=True)