discord-py-ui / discord-ui

A discord.py extension for sending, receiving and handling ui interactions in discord
https://discord-ui.rtfd.io/
MIT License
36 stars 9 forks source link

Replies are broken #95

Closed tiltowait closed 2 years ago

tiltowait commented 2 years ago

Performing a simple await ctx.reply() does not actually reply. The message is sent without tying it to the appropriate message/context.

The same is true for await ctx.message.reply().

kvsxxx commented 2 years ago

aight, sorry for the late reply and thx for reporting this issue.

do you have a small code snippet for it? Because there shouldn't exist an .reply function in any context

kvsxxx commented 2 years ago

if you try to reply to a message on a component interaction it should work properly

@bot.listen()
async def on_button_press(ctx):
    await ctx.message.reply("reply")
    await ctx.respond("response")

image

tiltowait commented 2 years ago

As of 4.2.6, replies seem to behave correctly now with no code change on my part. Looking through the commits since 4.2.2, nothing leaps out to me in particular as having been the culprit, so whatever you did, thanks!

kvsxxx commented 2 years ago

np and still thx for reporting