#ap-pa_webhooks

1 messages ยท Page 1 of 1 (latest)

safe acornBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1222165522443927624

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

high cloud
#

For instance, this is the old implementation for retrieving metadata:
metadata = event.lines.data[0].metadata
now, however, it has to be retrieved like this:
metadata = event.data.object.lines.data[0].metadata

molten totem
#

Hi ๐Ÿ‘‹ offhand I don't recall Events containing their associated object outside of data.object, but let me check through our changelog to see if that changed at some point.

#

I'm not seeing any mention of the structure changing for those Event objects, but if you have an example where you saw something different (preferably within the last 30 days due to the short retention period for Events) I'd be happy to take a look at that.

The second approach you show for accessing metadata looks like the correct one.