From 77f5acc290d56a690e9f91aeacdbaa1c78eaf92b Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 9 Aug 2024 10:23:01 -0400 Subject: [PATCH] update --- rolebuttons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rolebuttons.py b/rolebuttons.py index 36518a6..8aafeb6 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -16,10 +16,10 @@ class RoleView(nextcord.ui.View): return #res = await self.bot.cur.execute(f"SELECT roleid FROM rolebutton WHERE serverid = {self.bot.roleguild.id}") button = nextcord.ui.Button(label="Test", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:821095192831852554") - button.callback = await buttoncallback(self, button, None) + button.callback = buttoncallback self.add_item(button) button = nextcord.ui.Button(label="Test 2", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:1058708072064884736") - button.callback = await buttoncallback(self, button, None) + button.callback = buttoncallback self.add_item(button)