This commit is contained in:
insert 2024-08-09 10:23:01 -04:00
parent 09de6d126c
commit 77f5acc290
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -16,10 +16,10 @@ class RoleView(nextcord.ui.View):
return return
#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}")
button = nextcord.ui.Button(label="Test", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:821095192831852554") 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) self.add_item(button)
button = nextcord.ui.Button(label="Test 2", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:1058708072064884736") 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) self.add_item(button)