mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
as
This commit is contained in:
@@ -1968,16 +1968,25 @@ class DoSearchView(discord.ui.View):
|
||||
def __init__(self,*args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
self.row1 = "Test"
|
||||
@discord.ui.button(label="11", style=discord.ButtonStyle.danger, row=0)
|
||||
async def button_callback(self, interaction, button):
|
||||
@discord.ui.button(label="Sprawdz czy istnieje", style=discord.ButtonStyle.danger, row=0)
|
||||
async def button1_callback(self, interaction, button):
|
||||
#emoji = await ctx.guild.fetch_emoji(id)
|
||||
#button.emoji=1102174413887111189
|
||||
button.label = self.row1
|
||||
logger.info("Pressed")
|
||||
logger.info(button)
|
||||
logger.info(interaction)
|
||||
await interaction.response.edit_message(content = "You clicked the button!") # Send a message when the button is clicked
|
||||
|
||||
@discord.ui.button(label="Sprawdz czy istnieje", style=discord.ButtonStyle.danger, row=1)
|
||||
async def button2_callback(self, interaction, button):
|
||||
#emoji = await ctx.guild.fetch_emoji(id)
|
||||
#button.emoji=1102174413887111189
|
||||
logger.info("Pressed")
|
||||
logger.info(button)
|
||||
logger.info(interaction)
|
||||
await interaction.response.edit_message(content = "You clicked the button!") # Send a message when the button is clicked
|
||||
|
||||
|
||||
@client.hybrid_command(
|
||||
name="wyszukaj_linki_do_dokumentow",
|
||||
description="Szuka linkow doi w bazie crossref i podaje linki do scihuba",
|
||||
|
||||
Reference in New Issue
Block a user