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)