Gus Caplan
bd5540314b
add message@#type
2016-10-17 21:24:16 -05:00
Schuyler Cebulskie
62b93659e6
Clean up and simplify some code
2016-10-17 00:02:54 -04:00
Gus Caplan
e04dbbdb82
add clientuser#friends ( #807 )
...
* add client#friends
* Update Ready.js
* Update Client.js
* move friends to client.user
* Update ClientUser.js
* Update ClientUser.js
2016-10-16 21:28:17 -04:00
Schuyler Cebulskie
fc307fab8a
Remove unnecessary array conversions
2016-10-16 21:14:59 -04:00
Schuyler Cebulskie
13aae621b8
Fix Hyper's error and make it more useful
2016-10-16 20:58:03 -04:00
Schuyler Cebulskie
0b5ef296cb
Fix split messages resolving with multiple of the same message
2016-10-15 20:23:32 -04:00
Schuyler Cebulskie
7e0f98ec68
MOAR SIMPLIFICATION
2016-10-15 01:45:13 -04:00
Schuyler Cebulskie
f2555132fe
Simplify sendCode lang
2016-10-15 01:29:46 -04:00
Schuyler Cebulskie
6baf43dc24
Add Collection.filterArray
2016-10-15 01:20:31 -04:00
Schuyler Cebulskie
fe2192d544
Thanks for overriding the MessageOptions typedef, Gus 😒
2016-10-15 00:12:37 -04:00
Gus Caplan
50a1d1cbef
Add VoiceChannel.joinable/speakable ( #802 )
...
* add some getters to voice channels
* Update VoiceChannel.js
* Update VoiceChannel.js
* Update VoiceChannel.js
2016-10-14 18:58:48 -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
6e76df2656
Update legacy docs link
2016-10-14 01:45:02 -04:00
Schuyler Cebulskie
a6ca05b379
Change a word in help
2016-10-14 01:27:54 -04:00
Schuyler Cebulskie
84bca168b6
Update docs
2016-10-14 01:26:54 -04:00
Schuyler Cebulskie
ca4e9549a0
Add link to Yeoman generator
2016-10-14 01:13:50 -04:00
Schuyler Cebulskie
1ef00d0fe7
Change node-opus and opusscript to peer deps
2016-10-14 00:52:25 -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
Schuyler Cebulskie
492f706035
Fix Gus' log messages
2016-10-13 20:05:07 -04:00
Schuyler Cebulskie
26804f3673
Reorganise resolver
2016-10-12 02:26:56 -04:00
Gus Caplan
299484ff68
allow overwritePermissions to take a role id ( #792 )
...
* allow overwritePermissions to take a role id
* Fix typo
2016-10-11 20:29:29 -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
Gus Caplan
96355a4968
add constants, some debug stuff ( #791 )
...
* add constants, some debug stuff
* i can't believe i did this
2016-10-10 20:53:54 +01:00
Gus Caplan
32eeb8ad5e
Fix feature/login ( #790 )
...
* eeeeeeee
* too tired
* ok gawdl3y
Signed-off-by: Gus Caplan <fluffyrobotcheese@gmail.com >
2016-10-10 02:55:09 -04:00
Gus Caplan
5ddefc3682
fix webhook#edit ( #789 )
...
* fix webhook#edit
* hehe
2016-10-10 02:54:46 -04:00
Gus Caplan
e48d7d52f1
add webhook#sendSlackMessage ( #788 )
2016-10-10 01:56:18 -04:00
Schuyler Cebulskie
9230b8866b
Merge branch 'master' into indev
2016-10-10 02:45:10 -04:00
comp500
f292e7002f
fix proxyURL ( #783 )
2016-10-09 22:44:38 -04:00
Schuyler Cebulskie
29b33bffaa
Rearrange and clean up more webhook stuff
2016-10-09 15:50:50 -04:00
Schuyler Cebulskie
e7745a0af5
Clean up some webhook stuff
2016-10-09 15:30:46 -04:00
Schuyler Cebulskie
bd7ff36b66
Allow infinite messageCacheMaxSize
2016-10-09 15:22:14 -04:00
Schuyler Cebulskie
7a53f70978
Rename maxMessageCache -> messageCacheMaxSize
2016-10-09 15:16:54 -04:00
Schuyler Cebulskie
a717b60417
Add validation for all non-ws client options
2016-10-09 15:11:15 -04:00
Schuyler Cebulskie
e3b2f1f3da
Fix require path
2016-10-09 15:08:21 -04:00
Schuyler Cebulskie
dabe51fc8d
Reorganise disabledEvents stuff
2016-10-09 14:41:57 -04:00
Schuyler Cebulskie
7b571f9729
Add escapeMarkdown util function
2016-10-09 14:32:48 -04:00
Programmix
3e2d6ccc48
Convert disabledEvents Array to Object ( #786 )
...
* Convert disabledEvents Array to Object
Increased performance
* Commit to please Lord Gawdl3y
* Nitpick with chopsticks
2016-10-09 14:22:52 -04:00
Programmix
4653f88555
Add disabledEvents option to Client ( #784 )
2016-10-09 18:27:31 +01:00
Schuyler Cebulskie
da5183a5d5
Expose splitMessage
2016-10-08 00:12:03 -04:00
Gus Caplan
1c4ed4547f
adds new WebhookClient and allows you to fetch channel webhooks and such without being "over the top" ( #768 )
...
* start blocking out client
* proto webhookclient
* wee working webhooks
* it's all working
* run docs
* fix jsdoc issues
* add example for webhookClient
* add example in the examples place
* fix docs
2016-10-07 19:09:41 +01:00
Schuyler Cebulskie
f9b7f9c27e
Add readonly
2016-10-06 21:49:08 -04:00
Schuyler Cebulskie
79b0d3f2a5
Client.readyTime -> readyAt (consistency)
2016-10-06 21:48:25 -04:00
Schuyler Cebulskie
93425c3979
Expand collection array caching
2016-10-04 19:10:29 -04:00
Schuyler Cebulskie
2c3c91fe41
Merge branch 'master' into indev
2016-10-04 19:02:09 -04:00
Slamakans
53f5c2cb52
Cache array and keyArray in Collection ( #771 )
...
* Cache array and keyArray in Collection
Cache array and keyArray in the Collection class to improve consecutive
calls of collection.random() by around 400,000%, I think lel.
The speed decrease (I assume) compared to the previous version when
calling after it has changed is most likely negligible.
* Fix for ESLint
I think this fixes it.
2016-10-04 18:53:26 -04:00