#".id" not working

5 messages · Page 1 of 1 (latest)

fluid oyster
#

I have this line of code,

ticketsEmbedMessageId = statistic?.id;

, that's not working. It's saying, "Property 'id' does not exist on type 'Promise<Message<true>>'.
You're trying to access id on an object that doesn't contain it." It's also asking me if I forgot to use 'await,' but there is no 'async' in the entire file.

How do I fix this? Thanks.

#

Never mind. Fixed.

#

Thank you, though.

north crescent
#

you're welcome! 😏

#

!close