discord.js/src/util
BorgerKing bbdbc4cfa7
feat: remove datastores and implement Managers (#3696)
* Initial commit: add 5 initial managers

- Base manager
- GuildChannelManager
- MessageManager
- PresenceManager
- Reaction Manager
- Added LimitedCollection

* Add GuildEmojiManager, various fixes

* Modify some managers and add guildmembermanager

* Initial integration

* Delete old stores

* Integration part two, removed LRUCollection

- Most of the integration has been finished
- TODO typings
- Removed LRUCollection, needless sweeping

* Typings + stuff i somehow missed in ChannelManager

* LimitedCollection typings/ final changes

* Various jsdoc and syntactical fixes, Removed Util.mixin()

* tslint fix

* Grammatical and logical changes

* Delete temporary file placed by mistake

* Grammatical changes

* Add missing type

* Update jsdoc examples

* fix: ChannelManager#remove should call cache#delete not cache#remove

* fix recursive require

* Fix missed cache in util

* fix: more missed cache

* Remove accidental _fetchMany change from #3645

* fix: use .cache.delete() over .remove()

* fix: missing cache in ReactionCollector

* fix: missed cache in client

* fix: members is a collection not a manager

Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com>

* fix: various docs and cache fixes

* fix: missed cache

* fix: missing _roles

* Final testing and debugging

* LimitedCollection: return the Collection instead of undefined on .set

* Add cache to BaseManager in typings

* Commit fixes i forgot to stage yesterday

* Update invite events

* Account for new commit

* fix: MessageReactionRemoveAll should call .cache.clear()

* fix: add .cache at various places, correct return type

* docs: remove mentions of 'store'

* Add extra documented properties to typings

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2020-02-11 20:21:07 +01:00
..
ActivityFlags.js chore: add strict mode (#2974) 2018-12-03 15:19:10 -06:00
BitField.js fix(BitField): remove for..in in favor of Object.entries (#3650) 2020-01-13 14:07:54 +00:00
Collection.js feat: external collection package (#2934) 2019-09-10 17:44:47 +02:00
Constants.js feat(MessageReaction): add remove method and Client#messageReactionRemoveEmoji (#3723) 2020-01-25 20:00:53 +01:00
DataResolver.js cleanup(DataResolver): stats can't be falsy (#3651) 2020-01-05 17:45:16 +01:00
LimitedCollection.js feat: remove datastores and implement Managers (#3696) 2020-02-11 20:21:07 +01:00
MessageFlags.js feat: add new MessageFlags.FLAGS & User#system (#3603) 2019-12-15 20:23:06 +01:00
Permissions.js feat(Permissions): add new method Permissions#any (#3450) 2019-09-10 10:55:42 +02:00
Snowflake.js chore: add strict mode (#2974) 2018-12-03 15:19:10 -06:00
Speaking.js feat(Speaking): add PRIORITY_SPEAKING bit (#3680) 2020-01-13 13:58:40 +00:00
Structures.js feat: remove datastores and implement Managers (#3696) 2020-02-11 20:21:07 +01:00
SystemChannelFlags.js feat(Guild): add systemChannelFlags (#3559) 2019-12-21 21:27:14 +01:00
Util.js feat: remove datastores and implement Managers (#3696) 2020-02-11 20:21:07 +01:00