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"))