#Cannot read properties of undefined (reading 'send')

19 messages · Page 1 of 1 (latest)

rapid lodgeBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

upper sparrow
#

well you arent actually sending anything

#

send is empty

upbeat lagoon
#

probably not making sense idek what im doing myself

solid zodiac
#

You can't get a channelId from a schema type and because of that, there isn't a channel with that ID (the schema type) and also, yes u not sending anything either ways

#

You need to know how to get data from a database

upbeat lagoon
#

ah that's the issue. I've been trying to get it from the schema for hours

solid zodiac
#

Everything else is okay but getting rhe data is the issue because you're doing it wrong

#

Well, beside the channel.send()

upbeat lagoon
#

hmm got any guides on grabbing from the database?

#

im reading on hte mongoose rn

solid zodiac
#

I use it as a doc but there should be a guide

upbeat lagoon
#

Thanks man. honestly was in hell trying the same thing over and over

#

only getting null

solid zodiac
#

After you do that, .send({ embeds: [embed] })

upbeat lagoon