#Buttons
1 messages · Page 1 of 1 (latest)
you're likely editing without responding
so what youre saying is whenever i send the view that contains the rock, paper scissors
i should be responding for the first time, instead of editting it?
no, you edit as a response
cause irgh tnow i am doing edit, w hy would this cause this
if you could provide the relevant code, this exchange would go faster
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)
so you aren't handing any interaction callbacks at all
is there a reason you are not using the callbacks in the view classes?
i got it fixed thank you