#Cannot read properties of undefined (reading 'send')
19 messages · Page 1 of 1 (latest)
Im still a little new to js
If i can const channel to be the channel then how would i send that message to a already declared option? What's the best way to push the embed to the channel?
probably not making sense idek what im doing myself
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
ah that's the issue. I've been trying to get it from the schema for hours
Everything else is okay but getting rhe data is the issue because you're doing it wrong
Well, beside the channel.send()
Damn, not really but you can watch a few tutorials or read https://mongoosejs.com/, I believe there's a guide there
I use it as a doc but there should be a guide
Thanks man. honestly was in hell trying the same thing over and over
only getting null

After you do that, .send({ embeds: [embed] })
Thanks man i ended up fixing it. Im so glad im done with it spent 3 hours feeling stupid 