Buttons problem #1128
Unanswered
DWHIncAndi
asked this question in
Q&A
Buttons problem
#1128
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a problem with my discord bot, In this command the bottuns are'nt doing anything:
@bot.slash_command(
name="rps",
description="Play Rock-Paper-Scissors",
)
async def rps_command(ctx, opponent: nextcord.User = None):
rpsGame = ['🗿', '🧻', '✂️']
Event handler for button clicks
@bot.event
async def on_button_click(interaction):
# You can add additional logic here if needed
await interaction.respond(type=nextcord.InteractionType.DeferredUpdateMessage)
Beta Was this translation helpful? Give feedback.
All reactions