#Cannot Remove Components with edit_origin

1 messages · Page 1 of 1 (latest)

obtuse patrol
#

I have tried everything to remove a set of yes/no buttons from a message after they are clicked. The closest I can get is by setting them to disabled but they still are there and grayed out. Setting components=None leaves the buttons there. I feel like this should be simple but it doesn't want to work.

This is what sends the buttons:
msg = await ctx.send(response, components=yesno_buttons)

This works to gray them out:

reg_response = "Testing"
yesno_buttons[0].disabled = True
yesno_buttons[1].disabled = True

await clicked_msg.ctx.edit_origin(content=reg_response, components=yesno_buttons)```
fallow stagBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

rotund flame
#

Have you tried passing an empty list?

obtuse patrol
#

Yup. I couldn’t even run the command.

#

I know it’s going to be something simple. I just can’t figure it out. It took me a while to get the message to work and stop giving me an “interaction failed” error.

obtuse patrol
#

Son of a.......of course the empty list worked now. 🤦‍♂️