From 308640366255ace314696c6b2e4c2cceac90f15d Mon Sep 17 00:00:00 2001 From: insert Date: Fri, 9 Aug 2024 09:31:47 -0400 Subject: [PATCH] Update --- rolebuttons.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rolebuttons.py b/rolebuttons.py index 33d2bb3..f24b96b 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -12,14 +12,14 @@ 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 = {self.bot.roleguild.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")) + 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")) - async def callback(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): - await interaction.response.send_message(f"user requested role {button.custom_id}", ephemeral=True) - return + async def callback(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): + await interaction.response.send_message(f"user requested role {button.custom_id}", ephemeral=True) + return class speechbubble(commands.Cog):