timotejroiko/discord.js-light

Can't set maxSize on cache.

LosTigeros opened this issue · 9 comments

Hey, according to your example about caching roles only for the bot itself and ignoring all other roles you set the maxSize to 0.
In your types however there's only forceSet function defined and maxSize is not.
Because of that, TypeScript throws me an error.
image

cast it as Discord.LimitedCollection

Oh okay that works. Thanks.
What about this one?
image

i'll need to add that one to the typings, will do it soon. for now you can try (role as any).partial

Okay, thanks again.

hey i added the typings, can you test it? npm i timotejroiko/discord.js-light#v4

Hey, yes it shows them fine now.

released

Okay, thanks again.
If you want, you can add Shoob bot to the list.

If you want, you can add Shoob bot to the list.

Feel free to make a PR for it