This commit is contained in:
2024-04-01 13:25:47 +02:00
parent fd2255a8e2
commit 8be5dc56bc
+3 -2
View File
@@ -1962,9 +1962,10 @@ async def parametry_muzyki_mego_ludu(
logger.info(exce)
class DoSearchView(discord.ui.View):
@discord.ui.button(label="Test", style=discord.ButtonStyle.danger, emoji=1102174413887111189)
@discord.ui.button(label="Test", style=discord.ButtonStyle.danger)
async def button_callback(self, button, interaction):
#emoji = await ctx.guild.fetch_emoji(id)
#button.emoji=1102174413887111189
await interaction.response.send_message("You clicked the button!") # Send a message when the button is clicked
@client.hybrid_command(