Amish Shah
c6d0c31c84
hydra have you actually fixed voice whatttt
2016-10-24 17:10:17 +01:00
Amish Shah
8dd2005ab9
stop logging
2016-10-24 14:37:08 +01:00
Amish Shah
e13e2447d4
get voice sort of working
2016-10-24 14:26:24 +01:00
Amish Shah
9b3dd540ef
Merge remote-tracking branch 'origin/indev' into indev-voice
2016-10-24 12:50:40 +01:00
Amish Shah
21533eec5b
fix banning probably hopefully
2016-10-23 20:51:04 +01:00
Amish Shah
b2eb796cfc
remove console.log and fix endless loop connecting
2016-10-23 19:59:19 +01:00
Amish Shah
38ff53c3a1
woah is hydra actually working on voice?!
2016-10-23 19:51:44 +01:00
Amish Shah
f3439dcf6d
Merge remote-tracking branch 'origin/indev' into indev-voice
2016-10-23 14:46:41 +01:00
Gus Caplan
b020fae258
fix emoji updates ( #826 )
2016-10-22 23:43:07 -04:00
Gus Caplan
422b90c711
add way more friend shit ( #815 )
2016-10-22 16:25:55 -04:00
Gus Caplan
9c8eb2dfc3
lets all be friendly! ( #809 )
...
* lets all be friendly!
* fix doc
* Update ClientUser.js
* Update ClientUser.js
2016-10-18 01:36:25 -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
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
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
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
29b33bffaa
Rearrange and clean up more webhook stuff
2016-10-09 15:50:50 -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
dabe51fc8d
Reorganise disabledEvents stuff
2016-10-09 14:41:57 -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
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
Programmix
c4e1e4f50f
Add InviteResolvable ( #766 )
...
* Add InviteResolvable
Add InviteResolvable
* Return data as fallback instead
* Rename resolver method
2016-10-02 19:21:08 -04:00
Amish Shah
57a418399b
start some stuff on UDP
2016-10-02 17:28:48 +01:00
Amish Shah
c75782781b
finish up voice websocket for now
2016-10-02 16:51:40 +01:00
Schuyler Cebulskie
77e37b62ef
Fix sendMessage with no content and split/disableEveryone
2016-10-02 11:14:32 -04:00
Amish Shah
2bb6ecdc28
documentation
2016-10-02 15:16:54 +01:00
Amish Shah
ed8b79aa46
Add session description and speaking listeners
2016-10-02 15:12:43 +01:00
Amish Shah
e201e9080f
start rewriting voice websocket
2016-10-02 14:59:05 +01:00
Amish Shah
c286c1443f
voice rewrite part 1
2016-10-01 22:23:00 +01:00
Amish Shah
530035e14b
Fix stacked heartbeats on reconnect and fix documentation
2016-10-01 20:21:38 +01:00
Amish Shah
7c26603773
Fix presences probably ¯\_(ツ)_/¯
2016-10-01 15:27:56 +01:00
Schuyler Cebulskie
8945344a3b
Improve role position updating (allows for <=0)
2016-09-30 22:51:37 -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
f157bcf5e8
Rearrange StreamDispatcher code
2016-09-30 03:09:08 -04:00
Schuyler Cebulskie
4934874613
Inline a line
2016-09-30 03:05:37 -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
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
682e33cad9
Whoopsies
2016-09-27 20:21:52 -04:00
Schuyler Cebulskie
b8e659d544
Make Client.emojis suck less
2016-09-27 20:11:22 -04:00
Schuyler Cebulskie
973dbe8266
Add more @readonly and clean up some stuff
2016-09-27 20:07:33 -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
49d905a7b1
Reorganise some shard logic
2016-09-27 17:23:03 -04:00
Amish Shah
0ee3d6bb8a
fix sequences not being reset on new ws sessions
2016-09-27 20:10:42 +01:00
Amish Shah
045153584a
redo the client user presence stuff
2016-09-27 17:57:47 +01: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
Schuyler Cebulskie
36f4df2931
Capitalise two letters
2016-09-26 23:18:39 -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
Gus Caplan
b4f3575335
i am facepalming so hard right now ( #740 )
2016-09-26 03:55:54 -07: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
03651fd6e3
Change how presences are handled
2016-09-25 14:16:03 +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
Gus Caplan
c8636fd277
fix heartbeat ( #737 )
2016-09-24 23:56:18 -07:00
Amish Shah
aef0b83c34
comply to the latest rate limit stuff ( hammerandchisel/discord-api-docs#108 )
2016-09-24 18:19:18 +01:00
Gus Caplan
bd1449bc5a
make login sane ( #735 )
2016-09-24 17:55:31 +01:00
Schuyler Cebulskie
d9bc5cea1e
Small cleanups
2016-09-24 02:43:27 -04:00
Schuyler Cebulskie
d62551bea2
Remove old code
2016-09-24 02:20:48 -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
Gus Caplan
063be5cee2
smarter sharding™ ( #732 )
2016-09-23 21:43:16 +01:00
Schuyler Cebulskie
4bf6ad30f3
Remove a line
2016-09-22 23:10:00 -04:00
Schuyler Cebulskie
3fa4ff13e3
Add ShardingManager.fetchGuildCount
2016-09-22 22:48:21 -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
aa9fdf2e26
Small cleanups
2016-09-20 23:09:02 -04:00
Schuyler Cebulskie
468077ce96
Merge branch 'master' into indev
2016-09-20 23:02:56 -04:00
Matteo Rizzo
f383c78414
Fix VoiceConnection.playConvertedStream not playing anything ( #708 )
2016-09-20 23:01:02 -04:00
Schuyler Cebulskie
e5bac1339d
Improve Client.sweepMessages
2016-09-20 10:57:39 -04:00
Schuyler Cebulskie
6075ec0e19
Add more detail to debug message
2016-09-20 01:25:19 -04:00
Schuyler Cebulskie
8f1bc5edab
Add swept messages counter and debug message
2016-09-20 01:14:15 -04:00
Schuyler Cebulskie
5a9753e461
Double-fix my double-derp
2016-09-19 20:07:30 -04:00
Schuyler Cebulskie
0559aaf00b
Fix my derp
2016-09-19 20:01:20 -04:00
Schuyler Cebulskie
9503990a86
Rename max_message_lifetime to message_cache_lifetime
2016-09-19 17:52:11 -04:00
Schuyler Cebulskie
a2778d4a96
Fix resolveFile on nonexistent paths ( #717 )
2016-09-19 16:58:15 -04:00
Schuyler Cebulskie
afc8e5bee0
Add message sweeping
2016-09-19 16:52:46 -04:00
Gus Caplan
e0b614c3b2
weee add clyde because we all love clyde ( #716 )
...
* update to work with clyde's avatar image ;)
* add clyde to user cache on ready
* Update Ready.js
* Update Ready.js
2016-09-19 14:56:52 -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
6ede7a32fd
Switch timeouts/intervals to Sets
2016-09-19 04:16:32 -04:00
Schuyler Cebulskie
7d8667694d
Fix massive timeout/interval memory leaks
2016-09-19 03:49:42 -04:00
Schuyler Cebulskie
6f7deba4b3
Fix VoiceConnection client#voiceStateUpdate leak
2016-09-19 02:49:30 -04:00
Schuyler Cebulskie
9288cd8563
Replace usages of owner.id with ownerID, and fix GroupDMChannel.equals
2016-09-19 01:43:24 -04:00
Schuyler Cebulskie
5f9204f57c
Improve resolvePermission failure check
2016-09-19 00:19:15 -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
Schuyler Cebulskie
bbddfef7f6
Add resolveUserID and improve other resolutions
2016-09-18 22:59:38 -04:00
Schuyler Cebulskie
ab7682f921
Tiny text changes
2016-09-17 23:22:15 -04:00
Amish Shah
9308d2ead3
Address #700
2016-09-14 16:35:38 +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
Schuyler Cebulskie
25531170ec
Fix catch in _sendMessageRequest
2016-09-13 21:29:45 -04:00
Schuyler Cebulskie
bb0ca11776
De-stupify RESTMethods.getExistingDM
2016-09-13 20:50:18 -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
Amish Shah
02b257e1fc
Fix audio playing stupidly fast - fixes #689
2016-09-12 18:23:38 +01:00
Schuyler Cebulskie
6fb0691a2b
Add label for permission strings docs
2016-09-12 13:06:11 -04:00
Schuyler Cebulskie
961346dcaa
Inline a line
2016-09-12 13:04:09 -04:00
Schuyler Cebulskie
8984bf332c
Capitalised some letters
2016-09-12 13:02:56 -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
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
Gus Caplan
032d6613f7
add a message, because WHY THE HELL DID NO ONE EVER DO THIS ( #690 )
...
* add a message, because WHY THE HELL DID NO ONE EVER DO THIS
!!!
* make message better
* make linter happy
* disable max-len rule for line 37
* make gawdl3y be happy
* gawdl3y triggers me
* Update FfmpegConverterEngine.js
2016-09-11 21:28:17 -04:00
Amish Shah
9059eb13a2
Add passes to streaming voice
2016-09-11 18:49:18 +01:00
Amish Shah
3dab19a3bc
Add Client.fetchInvite
2016-09-11 18:19:55 +01:00
Amish Shah
8f1216d9a5
Add StreamDispatcher#start event
2016-09-11 17:39:07 +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
Amish Shah
3fba72107b
Add GuildMember.permissionsIn and make ChannelResolvables more lenient
2016-09-11 12:51:32 +01:00
Amish Shah
af33b2b5bb
fix #684
2016-09-11 12:38:57 +01:00
Amish Shah
5b8f882a0f
fix avatars being set to undefined
2016-09-11 11:50:19 +01:00
Schuyler Cebulskie
47d71d32f3
Make grammer gooder
2016-09-11 01:40:37 -04:00
Schuyler Cebulskie
0833500d60
Made most object typedefs specify their properties
2016-09-11 01:21:49 -04:00
Schuyler Cebulskie
7da00cf0fe
Add long message splitting
2016-09-11 01:01:36 -04:00
Amish Shah
e75dd2638c
Add Burst requests - addresses #656
2016-09-10 22:12:10 +01:00
Amish Shah
de6042a4d7
Merge branch 'master' into indev
2016-09-10 19:30:47 +01:00
Yannick Linke
6a53255ed5
Fixes typo in GuildRoleUpdate's documentation ( #679 )
...
See https://github.com/hydrabolt/discord.js/blob/7fe032c785/src/util/Constants.js#L156
2016-09-10 14:20:43 -04:00
Schuyler Cebulskie
a5a269b940
Fix Hydra's ESLint failure
2016-09-10 12:42:04 -04:00
Amish Shah
fd564176ff
Have block in place for rare weird typing in voice channel bug
2016-09-10 17:28:51 +01:00
Amish Shah
d7bf40cab0
Simplify APIRequest endpoint
2016-09-10 17:21:15 +01:00
Amish Shah
894115758c
Stricter rate-limiting to avoid unlikely 429s
2016-09-10 17:21:04 +01:00
Amish Shah
8c0685fa9a
Add StreamDispatcher.time and totalStreamTime, addresses #674
2016-09-10 14:44:52 +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
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
dd623891e2
websocket should silently error if there are no listeners for error
2016-09-09 17:05:38 +01:00
Schuyler Cebulskie
8f9923976f
Fix stuff
2016-09-09 11:35:59 -04: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