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
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
Amish Shah
530035e14b
Fix stacked heartbeats on reconnect and fix documentation
2016-10-01 20:21:38 +01:00
Amish Shah
ab15c45d96
fixed role stuff
2016-10-01 11:21:35 +01:00
Schuyler Cebulskie
9063aa8abf
Merge master
2016-10-01 03:44:43 -04:00
Schuyler Cebulskie
2acfb16cb8
Fix Guild.emojis doc
2016-10-01 03:41:49 -04:00
Schuyler Cebulskie
66beeb9535
Add role position comparison methods
2016-10-01 03:32:08 -04:00
Schuyler Cebulskie
c2c477834f
Add Role.setMentionable
2016-09-30 22:48:25 -04:00
Schuyler Cebulskie
b1322cbc69
Initialise and document StreamDispatcher.paused
2016-09-30 03:12:01 -04:00
Schuyler Cebulskie
543e814f8e
Move protocol version to a constant, and reorganise constants a bit
2016-09-30 02:45:16 -04:00
Amish Shah
cda31dd224
Fix a potential bug some people have in retrieving endpoints
2016-09-28 18:03:30 +01:00
Schuyler Cebulskie
155b4383d2
No, Hydra! Bad!
2016-09-27 22:13:04 -04:00
Schuyler Cebulskie
0bcca7bb55
Add Collection.concat
2016-09-27 20:47:12 -04:00
Gus Caplan
aed75e1f9a
Add full guild emoji functionality ( #749 )
...
* all the emoji stuff
* fix things for hydra 😘
* feck i need to stop committing on github
* update docs again
* Butts
2016-09-27 20:44:09 -04:00
Schuyler Cebulskie
973dbe8266
Add more @readonly and clean up some stuff
2016-09-27 20:07:33 -04:00
Schuyler Cebulskie
1a3f5ca6a9
Add Invite.expiresAt/expiresTimestamp
2016-09-27 19:50:03 -04:00
Schuyler Cebulskie
1e57c968dd
Made date/timestamps consistent and less shitty
2016-09-27 19:46:53 -04:00
Schuyler Cebulskie
b6c26cc2ae
Replace console.log in catches with console.error
2016-09-27 18:50:01 -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
Amish Shah
045153584a
redo the client user presence stuff
2016-09-27 17:57:47 +01:00
Schuyler Cebulskie
9d3b7b49dd
Cleanup and reorganise some shard stuff
2016-09-27 02:25:38 -04:00
Schuyler Cebulskie
e5a987e0ef
Add client shard eval/client property fetching, and improve existing shard stuff
2016-09-27 02:19:53 -04:00
Schuyler Cebulskie
4fe30aa4d3
Rip out client sharding logic into its own class
2016-09-26 23:23:56 -04:00
Gus Caplan
c8761d72de
add guild emoji methods ( #742 )
...
* add guild emoji methods
* run docs
* crawl pointed out some things about the docs, so i fixed
* actually run the docs on the changes 🤦
2016-09-26 21:39:07 +01:00
Amish Shah
f1cb39a319
Expose Presence and Game structures
2016-09-25 20:17:35 +01:00
Amish Shah
534d7af8c3
Fix resuming sessions ( fixes #699 )
2016-09-25 15:03:54 +01:00
Amish Shah
761b8cfb8d
fix docs
2016-09-25 14:28:51 +01:00
Amish Shah
0e8f1bef97
Stop comparing for equality on update events and just emit for performance
2016-09-25 11:24:02 +01:00
Amish Shah
124965425a
Version bump to 9.3.0 \o/
2016-09-24 19:54:29 +01:00
Kelvin Wu
a38f34899d
Merge remote-tracking branch 'upstream/indev' into bugfix/docs
2016-09-24 14:10:04 -04:00
Amish Shah
aef0b83c34
comply to the latest rate limit stuff ( hammerandchisel/discord-api-docs#108 )
2016-09-24 18:19:18 +01:00
Kelvin Wu
bd465108a7
Fix return type in docs.
2016-09-24 11:58:51 -04:00
Schuyler Cebulskie
1008f601f4
Add shard client prop fetching, remove guild count fetching, improve eval
2016-09-24 02:12:45 -04:00
Schuyler Cebulskie
e4f416ae6c
Add shard eval, broadcastEval, and fix fetchGuildCount response
2016-09-24 01:21:41 -04:00
Schuyler Cebulskie
5ea62e63ab
Improve sharding some more
2016-09-24 00:44:47 -04:00
Kelvin Wu
fa18b0c6c9
Handle DM messages in cleanContent getter. ( #726 )
...
* Handle DM messages in cleanContent getter. Closes #725 .
* Fix build error, improve handling for user IDs.
* Update docblock to be more specific about behaviour.
* Handle group DMs in cleanContent.
* Regen docs.
2016-09-24 00:23:12 -04:00
Gus Caplan
fc9d049cc1
make shardmanager better ( #731 )
...
* add respawn thing for shards, and make it easier to recieve messages from shards
* run docs
2016-09-23 18:36:14 +01:00
Schuyler Cebulskie
7f652f7df8
Add delay param to ShardingManager.spawn
2016-09-22 22:51:58 -04:00
Schuyler Cebulskie
3fa4ff13e3
Add ShardingManager.fetchGuildCount
2016-09-22 22:48:21 -04:00
Schuyler Cebulskie
9d94fbfbcb
Document and change launch event params
2016-09-22 22:06:56 -04:00
Schuyler Cebulskie
b795ed8109
Overhaul sharding broadcast/send
2016-09-22 22:03:10 -04:00
Schuyler Cebulskie
737ad8e92b
Slightly improve some Collection docs
2016-09-22 21:36:06 -04:00
Gus Caplan
edd174a5eb
Add ShardingManager#send and ShardingManager#broadcast ( #730 )
...
* add ShardingManager#send and ShardingManager#broadcast
* make gawdl3y happy
* Fix a thing
2016-09-22 21:35:08 -04:00
Gus Caplan
e86b93b34f
fix docs because gawdl3y forgot >:( ( #724 )
2016-09-22 02:25:08 -07:00
Schuyler Cebulskie
8af96810dd
Rename Guild.prune to pruneMembers
2016-09-21 16:05:33 -04:00
Schuyler Cebulskie
e9a7a06d52
Improve docs for voiceConnection/connection
2016-09-21 16:03:05 -04:00
Gus Caplan
15d7f8e2fe
Add Guild#prune ( #723 )
...
* make all changes neat
* run docs build
2016-09-21 15:57:14 -04:00
Schuyler Cebulskie
529d7207da
Add Role.mentionable
2016-09-21 15:15:47 -04:00
Schuyler Cebulskie
e5bac1339d
Improve Client.sweepMessages
2016-09-20 10:57:39 -04:00
Schuyler Cebulskie
8f1bc5edab
Add swept messages counter and debug message
2016-09-20 01:14:15 -04:00
Schuyler Cebulskie
c72d350b30
More FAQ work
2016-09-19 18:58:18 -04:00
Schuyler Cebulskie
f3d4755b6b
Small FAQ format changes
2016-09-19 18:44:32 -04:00
Schuyler Cebulskie
45a74e790f
Add FAQ
2016-09-19 18:42:48 -04:00
Schuyler Cebulskie
9ad4e27ce5
Add note about bot accounts to bulkDelete
2016-09-19 18:12:21 -04:00
Schuyler Cebulskie
9503990a86
Rename max_message_lifetime to message_cache_lifetime
2016-09-19 17:52:11 -04:00
Schuyler Cebulskie
6362c94f11
Build docs
2016-09-19 17:07:14 -04:00
Schuyler Cebulskie
46d7dedc85
Add Message.editCode
2016-09-19 15:14:51 -04:00
Schuyler Cebulskie
3441e2384f
Fix tiny-ass typo
2016-09-19 14:42:22 -04:00
Schuyler Cebulskie
47d873a8ca
Move and improve debug/warn docs
2016-09-19 05:11:35 -04:00
Schuyler Cebulskie
6a94658dd7
Clean up some stuff
2016-09-19 04:32:24 -04:00
Schuyler Cebulskie
77e171e599
Document Guild.ownerID
2016-09-19 01:38:18 -04:00
Schuyler Cebulskie
d8542b3365
Made Message.guild a getter
2016-09-19 00:47:42 -04:00
Schuyler Cebulskie
8603759b5e
Add Message.editable/deletable/pinnable
2016-09-19 00:42:58 -04:00
Schuyler Cebulskie
336366d653
Bad Hydra.
2016-09-18 23:46:59 -04:00
Schuyler Cebulskie
6c6da43da3
Fix ban/unban with IDs
2016-09-18 23:07:30 -04:00
Amish Shah
420f2ecdd4
Add Guild.voiceConnection and VoiceChannel.connection
2016-09-15 15:38:32 +01:00
Amish Shah
9308d2ead3
Address #700
2016-09-14 16:35:38 +01:00
Amish Shah
69f947dfcb
Fix #701
2016-09-14 16:24:18 +01:00
Gus Caplan
7cb2e8eef7
add disconnect event, document warn and debug events ( #702 )
...
* add documentation for events, and add a disconnect event, because i know people use that
* generate docs, and fix a hastily copied docstring
* fix permissions freak out
2016-09-14 00:12:10 -04:00
Amish Shah
b0adc881f3
Maybe fix #694 ?
2016-09-13 20:30:44 +01:00
Amish Shah
fbcea236c5
Fix avatars not being set on selfbots - fixes #697
2016-09-13 20:21:12 +01:00
Amish Shah
f7e89f61e6
Fix channelCreate being emitted twice - fixes #698
2016-09-13 20:00:00 +01:00
Schuyler Cebulskie
ac85ffce4b
Add Collection.keyArray/firstKey/lastKey/randomKey
2016-09-12 21:39:41 -04:00
Schuyler Cebulskie
84b33f9b66
Add Collection.reduce
2016-09-12 21:33:29 -04:00
Schuyler Cebulskie
0bd00b12b7
Add Invite.url and toString
2016-09-12 21:07:05 -04:00
Schuyler Cebulskie
8bcb670920
Spit-polishing ClientOptions docs
2016-09-12 17:50:24 -04:00
Schuyler Cebulskie
6aa9bfd7f9
More ClientOptions docs cleanup
2016-09-12 17:17:16 -04:00
Schuyler Cebulskie
168ecdf8a9
Reorganise client options and use typedef properties
2016-09-12 17:04:19 -04:00
Schuyler Cebulskie
5464ee7e64
Clean up MessageOptions JSDoc
2016-09-12 16:23:15 -04:00
Amish Shah
92775abb49
Version bump to 9.2.0
2016-09-12 18:35:47 +01:00
Amish Shah
02b257e1fc
Fix audio playing stupidly fast - fixes #689
2016-09-12 18:23:38 +01:00
Schuyler Cebulskie
5dd25ac1f1
Rename User typing methods
2016-09-12 13:08:11 -04:00
Schuyler Cebulskie
6fb0691a2b
Add label for permission strings docs
2016-09-12 13:06:11 -04:00
Amish Shah
ac2ad0dd23
Document PermissionResolvables
2016-09-12 17:58:57 +01:00
Amish Shah
ea55b0efbd
Fix receiver.recreate()
2016-09-12 17:43:45 +01:00
Amish Shah
36435934c7
documentation v13
2016-09-12 17:36:38 +01:00
Amish Shah
75b01e0a4a
add /play to test file
2016-09-12 17:08:56 +01:00
Amish Shah
95369b0a89
Add VoiceReceiver.destroy()/recreate(), addresses #693
2016-09-12 17:01:15 +01:00
Amish Shah
b39d959cdf
Maybe fix voice and #650 ?
2016-09-12 16:39:18 +01:00
Schuyler Cebulskie
fba3508079
Add a little more detail about value
2016-09-12 02:52:32 -04:00
Schuyler Cebulskie
2aae20085b
Key -> Property
2016-09-12 02:20:53 -04:00
Schuyler Cebulskie
516e6556a0
Update main docs page server links
2016-09-12 02:07:57 -04:00
Schuyler Cebulskie
e24c1e55a0
Remove wholly unnecessary example
2016-09-12 00:33:24 -04:00
Schuyler Cebulskie
7457985e60
Fix Collection.findKey doc link
2016-09-12 00:28:27 -04:00
Schuyler Cebulskie
95605863c7
Add Collection.findKey
2016-09-12 00:26:02 -04:00
Schuyler Cebulskie
ac1f5f32e2
Add Collection.find with function
2016-09-12 00:18:21 -04:00
Schuyler Cebulskie
38c85dc076
Add Role.hasPermissions
2016-09-12 00:06:21 -04:00
Schuyler Cebulskie
46b7628d59
Made hasPermission(s) docs a bit more consistent
2016-09-12 00:04:07 -04:00
Schuyler Cebulskie
95de09f389
Reorganised a bunch of methods
2016-09-11 23:55:50 -04:00
Schuyler Cebulskie
ce6cb626dc
Add Message.toString
2016-09-11 23:36:24 -04:00
Amish Shah
9059eb13a2
Add passes to streaming voice
2016-09-11 18:49:18 +01:00
Amish Shah
d365eb95e2
document game data #687
2016-09-11 18:23:58 +01:00
Amish Shah
3dab19a3bc
Add Client.fetchInvite
2016-09-11 18:19:55 +01:00
Amish Shah
07f4a20f77
Add link to Discord API in README
2016-09-11 17:53:49 +01:00
Amish Shah
b476473a2c
Make npm test harder to pass (includes jsdoc now)
2016-09-11 17:50:28 +01:00
Amish Shah
8f1216d9a5
Add StreamDispatcher#start event
2016-09-11 17:39:07 +01:00
Amish Shah
aa5df43c50
Force user.bot to be a boolean
2016-09-11 17:25:16 +01:00
Amish Shah
f0a9a1353f
prevent further user inaccuracies
2016-09-11 16:57:09 +01:00
Amish Shah
77e83fb85a
Fix voice 😄
2016-09-11 16:41:05 +01:00
Schuyler Cebulskie
a52beaa78d
Improve GuildMember.permissionsIn failure
2016-09-11 11:08:54 -04:00
Schuyler Cebulskie
21ad5668ba
Build docs
2016-09-11 11:01:28 -04:00
Amish Shah
9e05caec0d
Add GuildMember.hasPermissions
2016-09-11 12:58:56 +01:00
Amish Shah
3fba72107b
Add GuildMember.permissionsIn and make ChannelResolvables more lenient
2016-09-11 12:51:32 +01:00
Amish Shah
7933d755be
Fix docs generator and add EvaluatedPermissions.hasPermissions()
2016-09-11 12:44:31 +01:00
Amish Shah
8c0685fa9a
Add StreamDispatcher.time and totalStreamTime, addresses #674
2016-09-10 14:44:52 +01:00
Amish Shah
9d1d7c5162
Version bump to 9.1.1
2016-09-10 14:27:29 +01:00
Amish Shah
0d417b6432
Fix voice speed issues, fixes #672
2016-09-10 14:22:14 +01:00
Amish Shah
4255dcd3ca
Fix multipart for requests, fixes #675
2016-09-10 12:40:51 +01:00
Amish Shah
84fe65ec78
Fix members being recreated after leaving - fixes #667
2016-09-10 11:38:48 +01:00
Schuyler Cebulskie
c405d67e09
Add User typing methods
2016-09-09 14:11:30 -04:00
Amish Shah
4278a37e3c
maybe fix voice idk
2016-09-09 18:45:33 +01:00
Amish Shah
b7204f33b9
some voice fixes
2016-09-09 18:35:27 +01:00
Amish Shah
f192d16b5b
Fix delays inbetween audio streams ( #632 )
2016-09-09 18:28:21 +01:00
Amish Shah
e57fe71387
version bump to 9.1.0
2016-09-09 17:34:27 +01:00
Amish Shah
dd623891e2
websocket should silently error if there are no listeners for error
2016-09-09 17:05:38 +01:00
Amish Shah
e44853ee6d
Fix weird bot bug #612
2016-09-09 16:41:57 +01:00
Schuyler Cebulskie
8f9923976f
Fix stuff
2016-09-09 11:35:59 -04:00
Amish Shah
dbaaa8dc93
Fix null game objects being defaulted to current game - fixes #666
2016-09-09 16:28:40 +01:00
Amish Shah
85fae72b7b
Fix #657
2016-09-09 16:23:07 +01:00
Schuyler Cebulskie
9682adb9fe
Clean up PR a bit
2016-09-08 22:59:10 -04:00
Perry Berman
f7a542f12b
Add optional streamOptions to playStream() functions ( #663 )
...
* Adding playStream options
Added optional volume and seek properties
* fixed code formatting
Edited my code styling to match with the rest of d.js
* Added Default Variable
* Added Documentation
Added documentation for the streamOptions parameter
Added a default value for seek in FFmpegConverterEngine
Removed redundantcy
* Fixed docs for voiceConnection
* Change _updateMember's notSame check from && to || (#665 )
* Fixed git merge fail
* Built Docs. Again.........
* Hopefully finally fixed
2016-09-08 22:49:52 -04:00
Schuyler Cebulskie
d42b589528
Rename emailOrToken -> tokenOrEmail
2016-09-08 22:27:38 -04:00
Schuyler Cebulskie
9309b702eb
Remove unnecessary default in docs
2016-09-08 22:06:53 -04:00
Kelvin Wu
9888cef486
Add content parameter to sendFile() ( #664 )
...
* Add content arg to sendFile(). Closes #658 .
* Shorten this a bit.
2016-09-08 21:55:18 -04:00
Schuyler Cebulskie
a5dfa08777
Revert "Hopefully fix type showing in GuildChannel docs"
...
This reverts commit 5563af0da5 .
2016-09-08 19:56:21 -04:00
Schuyler Cebulskie
5563af0da5
Hopefully fix type showing in GuildChannel docs
2016-09-08 19:54:55 -04:00
Schuyler Cebulskie
a6ae66e184
Build docs
2016-09-08 02:35:46 -04:00
Kelvin Wu
9bdf670a14
Add Guild.defaultChannel. ( #646 )
...
* Add Guild.defaultChannel. Closes #643 .
* Change defaultChannel to a getter.
2016-09-07 15:58:18 -04:00
Schuyler Cebulskie
bc09da9a35
Update documentation
2016-09-07 02:24:25 -04:00
Schuyler Cebulskie
818649b94f
Organise structure methods
2016-09-07 02:07:39 -04:00
Schuyler Cebulskie
f185d892c7
Fix two more lines to use new typing map
...
And a tiny text fix
2016-09-07 00:58:19 -04:00
Schuyler Cebulskie
3a790e74f4
Build docs
2016-09-06 20:39:39 -04:00
Kelvin Wu
f3286402fb
Make Message.edit() accept arrays. ( #630 )
...
* Make Message.edit() accept arrays. Update corresponding parameters in docs (#624 ).
* Tweak parameter types in docs.
* Update docs.
2016-09-06 20:32:24 -04:00