#Edit embed after modal response?

1 messages · Page 1 of 1 (latest)

glad ravineBOT
#

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

regal goblet
#

can you send your code?

regal goblet
#

ok I think you're mixing few things around here

#

you answer to ctx by sending the modal, but then after you defer that ctx?? Not needed since you already answered it

#

same for modal_ctx, you modal_ctx.send() to answer the interaction but afterwards try to modal_ctx.edit() which won't work since you already answered

regal goblet
#

so the message you want to edit, is the one sent by modal_ctx.send() ?

#

and you want to edit it after an interaction or just edit it?

#

ok so if I understand well:

  1. enter /event_setup > creates the blue embed + buttons
  2. click on join > opens modal > edits the blue embed (do you still want to send this ephemeral answer or not?)
#

ok so in that case you want to get a reference to the blue embed message (msg = ctx.send()), and later when needed, msg.edit()

#

note that ctx.edit and msg.edit are NOT the same

#

one acts as a response for an interaction (button, command...) while other is just a message edit