From e5cada50cb78754c0c7e89d9d8a5287d6b7da0b1 Mon Sep 17 00:00:00 2001 From: Migatu Date: Mon, 1 Apr 2024 13:37:43 +0200 Subject: [PATCH] aa --- bot.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index b57f266..9ad2fc4 100644 --- a/bot.py +++ b/bot.py @@ -1966,11 +1966,16 @@ class DoSearchView(discord.ui.View): async def button_callback(self, button, interaction): #emoji = await ctx.guild.fetch_emoji(id) #button.emoji=1102174413887111189 + logger.info("Pressed") await interaction.response.send_message("You clicked the button!") # Send a message when the button is clicked -@client.slash_command() +@client.hybrid_command( + name="wyszukaj_linki_do_dokumentow", + description="Szuka linkow doi w bazie crossref i podaje linki do scihuba", + guild=discord.Object(id=664789470779932693), +) async def wyszukaj_linki_do_dokumentow(ctx): - await ctx.respond("This is a button!", view=DoSearchView()) # Send a message with our View class that contains the button + await ctx.send("This is a button!", view=DoSearchView()) # Send a message with our View class that contains the button # *================================== Run