#Buttons

1 messages · Page 1 of 1 (latest)

waxen isle
#

Hey, I got an issue with buttons, I make two buttons accept, decline. After the user accept 3 new buttons appear removing accept / decline. If a user clicks accept, it makes the user click the button also behind of it which is rock, why would that be the case?

pastel saffron
waxen isle
#

i should be responding for the first time, instead of editting it?

pastel saffron
#

no, you edit as a response

waxen isle
#

cause irgh tnow i am doing edit, w hy would this cause this

pastel saffron
#

if you could provide the relevant code, this exchange would go faster

waxen isle
#
        view = MultiplayerInvite(ctx, ctx.author, opponent, amount)
        original_message = await ctx.respond(f"{opponent.mention}, you have been challenged to a game of Rock-Paper-Scissors by {ctx.author.mention}. Bet: **${amount:,d}**!", view=view)
        await view.wait()
            game_view = MultiplayerGameView(self.bot, ctx, ctx.author, opponent, amount, self.pool)

            embed = discord.Embed(title="Rock-Paper-Scissors", description=f"Game starts now! It's {first_turn}'s turn.")

            await original_message.edit(content=None, embed=embed, view=game_view)
pastel saffron
#

so you aren't handing any interaction callbacks at all

#

is there a reason you are not using the callbacks in the view classes?

waxen isle
#

i got it fixed thank you