Gus Caplan
8aafcd6cde
allow passing a function to shard eval ( #2193 )
2018-01-12 14:05:27 +01:00
Schuyler Cebulskie
e792757e32
Only create ShardClientUtil when spawned by ShardingManager
2018-01-08 22:13:46 -05:00
Schuyler Cebulskie
0d188c0fba
Rename ShardingManager#launch event to shardCreate
2017-11-24 22:33:29 -05:00
Schuyler Cebulskie
c6244ee6e1
Fix shards not respawning on exit
2017-11-20 22:37:35 -05:00
Schuyler Cebulskie
527c729aca
Possibly fix weird behaviour
2017-11-20 22:29:46 -05:00
Schuyler Cebulskie
c447abad60
Clear evals and fetches on process death
2017-11-20 22:26:14 -05:00
Schuyler Cebulskie
b5459a96fa
Move ShardingManager#message event to Shard#message
2017-11-20 22:20:32 -05:00
Schuyler Cebulskie
26b28813a8
Use a custom promisified setTimeout
2017-11-19 13:47:04 -05:00
Schuyler Cebulskie
acf82f32c3
Mark Shard#_exitListener as private
2017-11-19 02:31:06 -05:00
Schuyler Cebulskie
1338e9bd8e
Update sharding docs some more
2017-11-19 02:30:20 -05:00
Schuyler Cebulskie
975da5f1a5
Rewrite sharding class descriptions and link Client
2017-11-19 02:21:29 -05:00
Schuyler Cebulskie
9cd097492c
Update doc for ShardingManager#createShard id parameter
2017-11-19 02:06:38 -05:00
Schuyler Cebulskie
f777c19fbf
Fix naming conflict with ShardingManager#respawn
2017-11-19 02:03:44 -05:00
Schuyler Cebulskie
2a332d8d15
Add ShardClientUtil#respawnAll
2017-11-19 01:54:10 -05:00
Schuyler Cebulskie
a414e4884f
Overhaul sharding
2017-11-19 01:28:46 -05:00
SpaceEEC
6fa4fc532c
fix(Shard): extend EventEmitter to be able to emit events ( #2112 )
2017-11-17 02:49:57 -05:00
Schuyler Cebulskie
196cf7652e
Add Shard#ready property and related events
2017-11-16 22:49:38 -05:00
Robin B
97823bc376
Various documentation adjustments ( #2001 )
...
* docs(various): Add "at" to createdAt description
* docs(Client): Adjust to fit with guilds property
* docs(various): Adjust phrasing & fix typos
* docs(various): Clarifications
* docs(Permissions): fix numerus
* docs(DataStore): capitalize DataStore
* docs(various): Formatting changes
* docs(Presence): Expand RichPresenceAssets docs
* Add space
2017-10-07 01:56:17 +02:00
SpaceEEC
ec4c98704f
refactor: make use of destructuring for Constants ( #1942 )
2017-09-16 20:31:36 +02:00
SpaceEEC
65d9d46a3c
Fixed DataStore, deprecation leftovers and a bit of Event Constants ( #1841 )
...
* Fixed leftover fetchThing and removed unused methods/error messages
* Added resume event constant and used event constants wherever possible
* Replaced mentions of removed method name with their new name.
* Fixed typo: resume -> resumed
2017-08-28 00:11:28 +02:00
iCrawl
2aa2f73c74
Docs cleanup
2017-08-17 20:04:01 +02:00
Gavin Wainwright
7b44262346
Destructure certain imports ( #1634 )
2017-06-29 00:43:26 +01:00
Gus Caplan
63e54982f4
Errors Standardization ( #1246 )
...
* errors and stuff
* more errors
* all the errors
* fix build
2017-06-25 18:48:05 +01:00
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
Amish Shah
eec79b5fd0
Increase WebSocket backoff time to alleviate reconnect issues
2017-04-22 21:16:58 +01:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
bdistin
4d2153c7c6
Document ShardingManager#message ( #1024 )
...
* Document ShardingManager#message
* Update Shard.js
2016-12-27 22:44:17 -05:00
Schuyler Cebulskie
a0de75f290
Improve ShardClientUtil warnings/errors
2016-12-07 00:30:36 -05:00
Schuyler Cebulskie
90304aa7d6
Fix loads of JSDoc type issues
2016-11-12 20:52:37 -05:00
Schuyler Cebulskie
305070dded
Remove experimental warning on sharding manager
2016-11-12 17:30:07 -05:00
Schuyler Cebulskie
60e0d507f0
Clean up nearly all promises to utilise chaining, other small fixes
2016-10-30 16:27:28 -04:00
Schuyler Cebulskie
8306d50bd8
Clean up a bunch of promise stuff
2016-10-30 12:47:17 -04:00
Schuyler Cebulskie
ecee07655f
Simplify Shard.env
2016-10-26 15:31:05 -04:00
Amish Shah
1a3ea65abd
fix some shard stuff on linux
2016-10-26 20:15:56 +01:00
Amish Shah
a2f125e416
case sensitive
2016-10-26 19:27:52 +01:00
Amish Shah
4a5cef0ccf
Rename getRecommendedShards to fetchRecommendedShards
2016-10-26 17:29:23 +01:00
Gus Caplan
9f7c630796
lel ( #824 )
2016-10-22 14:51:21 -04:00
Schuyler Cebulskie
8f0e2e0c56
Make token "Bot" removal more lenient
...
In case of heavy user error. :)
2016-10-14 02:14:00 -04:00
Schuyler Cebulskie
e4636243b2
Improve token "Bot" removal
2016-10-14 02:11:31 -04:00
Schuyler Cebulskie
485ffd267e
Remove auto shard spawn interval (Discord doesn't support such a great idea 👀 )
2016-10-14 00:21:08 -04:00
Schuyler Cebulskie
915a4cbe37
Rename spawnArgs -> shardArgs
2016-10-14 00:00:15 -04:00
Schuyler Cebulskie
3293f9a8de
Add automatic shard spawning, and document options
2016-10-13 23:58:32 -04:00
Schuyler Cebulskie
aad06c1116
Teensy cleanup
2016-10-13 23:32:52 -04:00
Gus Caplan
853a3dfa04
Add getRecommendedShards and automatic shard count in ShardingManager ( #796 )
...
* draft stuff
fix docstring for Client#token
Reorganise resolver
make env better for shards, clean up docs
Fix Gus' log messages
7
meh just gateway/bot not v7 :(
final changes, ready for mergin!
build docs
make default totalShards 'auto', fix docs for totalShards type
clean up docs more
run docs
* make consistancy real
* Update and rename getRecommendedShards.js to GetRecommendedShards.js
* Update GetRecommendedShards.js
* Update index.js
* Update RESTMethods.js
* Update Shard.js
* Update GetRecommendedShards.js
* Update ShardingManager.js
* run docs
2016-10-13 23:26:10 -04:00
Gus Caplan
0de3d1bfc4
make sharding manager constructor better ( #794 )
...
* add color stuff to support popular color libraries
* make this better
* fix docs
2016-10-11 20:20:59 -04:00
Schuyler Cebulskie
973dbe8266
Add more @readonly and clean up some stuff
2016-09-27 20:07:33 -04:00
Schuyler Cebulskie
ba8dd3467a
Switch config back to camelCase
2016-09-27 18:42:32 -04:00
Schuyler Cebulskie
4fceae02d6
Fix ShardClientUtil.fetchClientValues example
2016-09-27 17:25:17 -04:00
Schuyler Cebulskie
49d905a7b1
Reorganise some shard logic
2016-09-27 17:23:03 -04:00
Schuyler Cebulskie
38366f627d
Fix transmitting errors through IPC
2016-09-27 02:40:29 -04:00