Update
This commit is contained in:
parent
7dd51f56ba
commit
3086403662
1 changed files with 6 additions and 6 deletions
|
@ -12,14 +12,14 @@ class RoleView(nextcord.ui.View):
|
||||||
super().__init__(timeout=None)
|
super().__init__(timeout=None)
|
||||||
self.bot = bot
|
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", 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 2", style=nextcord.ButtonStyle.gray, custom_id="rolebutton:1058708072064884736"))
|
||||||
|
|
||||||
async def callback(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
|
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)
|
await interaction.response.send_message(f"user requested role {button.custom_id}", ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
class speechbubble(commands.Cog):
|
class speechbubble(commands.Cog):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue