From 2dc257466b580b8b0e8cf9d9e6658fb69037e14c Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 16:19:48 -0400 Subject: [PATCH] Update --- rolebuttons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rolebuttons.py b/rolebuttons.py index 9c62fc7..8f1bd9b 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -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)