#Edit and add field value to embed on button click?

1 messages · Page 1 of 1 (latest)

halcyon pilotBOT
#

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

peak bone
#
  1. Make a component listener
  2. get the context message
  3. get first embed from the message
  4. add new fields
  5. edit message with the updated embed
woven wren
#

On component > create embed based on last embed > edit the embed message with the new embed

woven wren
#

Did it work?

woven wren
#

event.message

peak bone
#

What?

#

Docs can answer most of your questions. event.ctx.message returns interacted message
For editing message use ctx.edit_origin or ctx.edit

peak bone
#

Then use ctx.edit_origin

peak bone
#

Your code works fine on my machine

#

try update library to the latest version (5.1.0) or try to reinstall