#Property 'includes' does not exist on type '{ defaultOptions:........
22 messages · Page 1 of 1 (latest)
what's data.roles?
no, what's it typed as?
ts is saying it's not that
alright, how did you define data?
why do you have all those assertions...?
the as strings you have
those should probably not be there
and as TextChannel, you should guard that
please don't just blindly go with that. it is a tool, not a replacement for knowledge
!hb
go through the basics there before using ts please. it'll improve your experience.
what's the full error?
that looks an awful lot like the schema
what's staffList? the model or the schema?
yeah you shouldn't be
did you check any guides for ts?
mongoose has a guide on using ts with mongoose https://mongoosejs.com/docs/typescript.html
yeah.. don't do that
trying random stuff isn't going to go well
read up on how to use stuff before using them
it's going to go much better than this