#how do i Edit a response

1 messages · Page 1 of 1 (latest)

crisp hull
glacial swallow
#

hm

normal coral
#

you cannot use ctx in a button

#

interaction: discord.Interaction

glacial swallow
#

do await interaction.response.defer()

#

and pass in interaction

#

not ctx

#

in the callback

#

and interaction.edit_original_message()

normal coral
glacial swallow
crisp hull
#

update and edit also give the same errors

glacial swallow
#

not response, oops

crisp hull
#

now it says it was never awaited lol

glacial swallow
#

just move the content=... into edit_original_response

#

learn some python before going into pycord

crisp hull
#

o, i added extra parentheses on accident somehow, omg

#

got it

glacial swallow
#

No

#

interaction.edit_original_response

#

not menu

#

the interaction gets the original msg for u

crisp hull
#

it dident work with interaction

#

it did with menu

glacial swallow
#

ok just do what works for u ig

crisp hull
#

awww

#

actually it did work