#Can someone help?

1 messages · Page 1 of 1 (latest)

stone nacelle
#

looks like you can make use of some debugging. shows us how data looks like

silver grail
#

there is no .tag, use .username

subtle yew
subtle yew
stone nacelle
#

i mean at runtime,before the error happens

subtle yew
#

Oh ok

#

I copied too many things ic

stone nacelle
#

you have to use something like console.log(data)

subtle yew
stone nacelle
#

but i see a different error at the bottom

subtle yew
#

Ignore everything above "ready"

stone nacelle
#

why is the error different?

subtle yew
stone nacelle
#

i guess data is an embed. where it is coming from? have you wrote it?

subtle yew
#

data refers to the data on a message embed that i grabbed with the message id

#

const data = suggestedEmbed.embeds[0];

#

let suggestedEmbed = await suggestionChannel.messages.fetch(messageId);

stone nacelle
#

1: you don't need to use an embed in order to access data about the author
2: suggestedEmbed might be a partial. calling suggestedEmbed.fetch() might solve the issue

#

3: using suggestionChannel.message.resolve(messageId) might be more appropiate