From 7dd51f56ba487a4505f3df9c0f2e1a3b2bb51e2a Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 9 Aug 2024 09:12:58 -0400 Subject: [PATCH] Update --- rolebuttons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rolebuttons.py b/rolebuttons.py index 3a8d446..33d2bb3 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -12,7 +12,7 @@ class RoleView(nextcord.ui.View): super().__init__(timeout=None) self.bot = bot - #res = await self.bot.cur.execute(f"SELECT roleid FROM rolebutton WHERE serverid = {guild.id}") + #res = await self.bot.cur.execute(f"SELECT roleid FROM rolebutton WHERE serverid = {self.bot.roleguild.id}") self.add_item(nextcord.ui.Button(label="Test", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:821095192831852554")) self.add_item(nextcord.ui.Button(label="Test 2", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:1058708072064884736"))