#Discord JS (porting to TS for fun)
1 messages ยท Page 1 of 1 (latest)
client is of type Client, not type IClient
which is why i'm extending it
you're extending Client as IClient, but you aren't using IClient
there's an explicit casting
oh i completely missed the cast mb
nvm i was like ๐
you're using client.feature directly, that looks for the key feature instead of the value of the variable feature
you need client[feature]
you also need a as const on the array so it doesn't become a string[]
also you may want to type your collections more strictly
hold awnn
thanks
actually got another question
is there an opinionated tsconfig that allows me to start easy n quick