mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
11
This commit is contained in:
@@ -1968,13 +1968,9 @@ class DoSearchView(discord.ui.View):
|
|||||||
#button.emoji=1102174413887111189
|
#button.emoji=1102174413887111189
|
||||||
await interaction.response.send_message("You clicked the button!") # Send a message when the button is clicked
|
await interaction.response.send_message("You clicked the button!") # Send a message when the button is clicked
|
||||||
|
|
||||||
@client.hybrid_command(
|
@client.slash_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):
|
async def wyszukaj_linki_do_dokumentow(ctx):
|
||||||
await ctx.send("This is a button!", view=DoSearchView()) # Send a message with our View class that contains the button
|
await ctx.respond("This is a button!", view=DoSearchView()) # Send a message with our View class that contains the button
|
||||||
|
|
||||||
|
|
||||||
# *================================== Run
|
# *================================== Run
|
||||||
|
|||||||
Reference in New Issue
Block a user