Schuyler Cebulskie
49fdc331a7
Fix formatting
2016-11-17 02:49:24 -05:00
Gus Caplan
b2bc844ed7
Add new MessageEmbed stuff ( #898 )
...
* fix
* Update MessageEmbed.js
* man
* Update MessageCreate.js
* Update MessageEmbed.js
* Update MessageEmbed.js
* clean up, add class
* my dreams are slowly becoming memes
* aghhh
* safety
* Update MessageEmbed.js
* Update MessageEmbed.js
* Update MessageEmbed.js
* dammit
2016-11-17 02:42:50 -05:00
York
1833a83664
Documented reaction events ( #905 )
2016-11-17 02:18:03 -05:00
Programmix
5ed8098af8
Clean up reactions, add remove all reactions ( #890 )
...
* Clean up reactions, add remove all reactions
* Reorganize reactions
* Re-add Gawdl3y's precious little inline
* Update Message.js
2016-11-13 02:29:26 -05:00
Steffen
a359f344d8
UnhandledPromiseRejectionWarning caused by resolveBuffer on empty resource body ( #886 )
...
* Fix for UnhandledPromiseRejectionWarning in resolveBuffer
* code simplification
* reject with TypeError if body is not a Buffer
2016-11-13 02:07:51 -05:00
Gus Caplan
27270a3bad
add embed support! ( #894 )
...
* add embed support!
* document message embeds
* make gawdl3y happy
* make edit great again
* make docs better
* Update Message.js
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2016-11-13 01:05:13 -05:00
Schuyler Cebulskie
b07a31d44e
Change case of "function"
2016-11-12 21:07:22 -05:00
Schuyler Cebulskie
90304aa7d6
Fix loads of JSDoc type issues
2016-11-12 20:52:37 -05:00
Schuyler Cebulskie
ce132d5f54
Make bot/user account warnings MOAR CONSISTENT!!one!
2016-11-12 17:15:17 -05:00
Schuyler Cebulskie
1e8392d90b
Merge branch 'master' into indev
2016-11-12 00:30:25 -05:00
Marko Kajzer
c02eb2f171
Fixed unset field of VoiceConnection ( #879 )
...
* Fixed unset field of VoiceConnection
Fixed a typo
* Update VoiceConnection.js
2016-11-07 12:35:49 -05:00
Programmix
fe3914658a
Grammar cleanup ( #875 )
...
This commit:
* fixes inconsistencies (primarily regarding capitalization)
* fixes non-proper nouns that were improperly capitalized
* fixes reminents from not-so-meticulous copy+paste jobs
2016-11-05 23:57:34 +00:00
Programmix
9a61de1493
Document GuildChannel.edit, add VoiceChannel.setUserLimit, fix typo ( #866 )
2016-11-01 01:42:05 -04:00
Programmix
6dc95cd084
Add support for notes ( #860 )
...
* Add support for notes
* Ensure consistency with notes from ready payload
* Add getter method for users
* Minor tweaks
* Update warning messages
* More minor fixes
2016-10-30 23:06:09 -04:00
Schuyler Cebulskie
d7e1e1c0c9
Add warnings for Collection.find/exists
2016-10-30 22:22:16 -04:00
Schuyler Cebulskie
73261646fc
Fix ESLint warnings
2016-10-30 17:23:39 -04:00
Schuyler Cebulskie
f2496070d3
Document client timeout/interval stuff
2016-10-30 17:02:06 -04:00
Schuyler Cebulskie
85330769a7
Refactor OAuth application stuff
2016-10-30 16:55:08 -04:00
Schuyler Cebulskie
589c44327a
Make bot/user account notices consistent
2016-10-30 16:41:39 -04:00
Schuyler Cebulskie
5fa9e3548b
Rename ClientDataResolver.resolveFile -> resolveBuffer
2016-10-30 16:29:56 -04: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
Amish Shah
c334bf4535
Merge branch 'master' into indev
2016-10-28 18:47:49 +01:00
Pascal Luttgens
cdf66f8011
Fixed resolveChannel when using a string ( #857 )
2016-10-28 14:09:40 +01:00
Schuyler Cebulskie
cf04b44454
Clean up some more
2016-10-27 21:38:48 -04:00
Schuyler Cebulskie
4e6b632d23
Fix VoiceConnection.speaking not emitting
2016-10-27 20:51:19 -04:00
Schuyler Cebulskie
83bef4ca77
Teensy weensy cleanup
2016-10-27 20:45:09 -04:00
Schuyler Cebulskie
1841122a8f
Cherry pick commits from indev
2016-10-27 19:48:34 -04:00
isonmad
4bd19c94ba
fix Client.destroy ( #853 )
...
_timeouts and _intervals were changed to Set objects in
commit 6ede7a32fd a month ago.
Like #844 , this fix was reverted in 7d04863b66 (#839 )
without explanation and was never included in the followup rewrite in
commit 5e2ee2398e .
2016-10-27 17:38:34 -04:00
Hackzzila
30105536a6
ESLint warnings ( #852 )
2016-10-27 22:19:20 +01:00
Hackzzila
c9dbf1f7f0
OAuth info stuff ( #849 )
...
* OAuth info stuff
* fix docs
* oops
2016-10-27 21:50:04 +01:00
Amish Shah
5dd76069f8
Simplify voice channel joining
2016-10-27 19:04:24 +01:00
Amish Shah
dfeafbf5fa
Add the ADD_REACTIONS permission
2016-10-27 17:32:23 +01:00
Amish Shah
cd9b391e2a
Hide SecretKey in documentation
2016-10-27 17:25:17 +01:00
Amish Shah
9cba1bc6d0
remove users from message reactions
2016-10-27 17:16:40 +01:00
Amish Shah
dd9c291508
Add reaction fetching of users
2016-10-27 16:58:06 +01:00
Amish Shah
81059885a2
Start work on adding reaction support
2016-10-27 15:22:42 +01:00
isonmad
dd31ee0c5f
propagate errors in ClientManager.destroy ( #844 )
...
If the promise returned by logout() rejects, previously
it would be completely uncaught, and just return an
eternally pending promise that never resolved.
Related to pull requests #828 and #839 .
2016-10-27 11:33:51 +01:00
Schuyler Cebulskie
4e693e2e39
Fix a small VoiceReceiver doc issue
2016-10-26 21:43:28 -04:00
Schuyler Cebulskie
ab6750d06d
Make docs catches use console.error
2016-10-26 21:37:19 -04:00
Amish Shah
00fe45f6b3
simplify client destruction
2016-10-26 19:52:41 +01:00
Amish Shah
5e2ee2398e
Fix some destroy stuff ( #828 )
2016-10-26 19:42:21 +01:00
Amish Shah
7d04863b66
Revert "fix Client.destroy bugs" ( #839 )
2016-10-26 17:30:18 +01:00
Gus Caplan
c6bcf69dc3
added User#fetchProfile ( #835 )
...
* add User#fetchProfile
* fix merge conflicts?
2016-10-26 16:23:39 +01:00
Amish Shah
e12c7bf2d4
Whoops remove something
2016-10-26 16:10:02 +01:00
Amish Shah
50f73bf430
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 16:06:58 +01:00
Amish Shah
0f1e121b81
hide some voice stuff in docs
2016-10-26 16:06:56 +01:00
Gus Caplan
60a911e4a0
add clientUser#createGuild ( #832 )
...
* add clientUser#createGuild merge docs
* almost caused a memory leak!
* muh triggers
2016-10-26 15:59:15 +01:00
Amish Shah
35ac80024a
Rename some events (mainly guild events)
2016-10-26 15:52:40 +01:00
Amish Shah
45632b2eae
fix joining voice channels without perms
2016-10-26 15:23:54 +01:00
Amish Shah
650e21e907
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 15:14:30 +01:00
Amish Shah
e7e8a802b8
Fix docs
2016-10-26 15:14:28 +01:00
isonmad
e9fa8a438c
fix Client.destroy bugs ( #828 )
...
* add test for Client.destroy()
* propagate errors in ClientManager.destroy
If the promise returned by logout() rejects, previously
it would be completely uncaught, and just return an
eternally pending promise that never resolved.
* fix RESTMethods.logout
Without a data argument, the POST that superagent sends causes
the discord server to reply with a HTTP 400 error:
text: '{"Content-Type": "Expected Content-Type to be one of set([\'application/json\'])."}',
* fix Client.destroy
_timeouts and _intervals were changed to Set objects in
commit 6ede7a32fd a month ago.
Changing them to arrays causes failures if you try to reuse
the client object again.
* always close websocket in ClientManager.destroy
Invoking logout does not implicitly cause the server to close
the websocket for you, so cleanup everything.
Otherwise the websocket being open keeps node alive and hanging
mysteriously until the connection hits a timeout.
* fix indentation for eslint
2016-10-26 14:49:45 +01:00
Amish Shah
26de908cfd
some voice docs
2016-10-26 14:44:19 +01:00
Amish Shah
968883ec35
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 14:19:39 +01:00
Amish Shah
0c4a4023ce
Fix setting guild role positions ( #751 )
2016-10-26 14:19:36 +01:00
Schuyler Cebulskie
05f73c3edf
Clean up voice channel join permissions check
2016-10-25 20:41:23 -04:00
Schuyler Cebulskie
b2a4545c16
Clean up more voice stuff
2016-10-25 20:34:57 -04:00
Schuyler Cebulskie
d1e9d15a1c
Clean up a bunch of new voice stuff
2016-10-25 20:26:57 -04:00
Schuyler Cebulskie
a04094f0ff
Rename VoiceConnection.disconnected event -> disconnect
2016-10-25 19:59:22 -04:00
Schuyler Cebulskie
c96d5ad30e
Optimise everyone/here replacing
2016-10-25 19:01:56 -04:00
Amish Shah
ff16c9f01f
change currentDispatcher to just dispatcher
2016-10-25 21:55:38 +01:00
Amish Shah
0f8e8dddff
fix presence updating
2016-10-25 21:40:53 +01:00
Amish Shah
2ee6da8d79
redo docs again
2016-10-25 19:52:10 +01:00
Amish Shah
5bd18e6051
add some documentation
2016-10-25 19:47:17 +01:00
Amish Shah
f77af72d71
Add voice receiving again \o/
2016-10-25 19:41:54 +01:00
Amish Shah
b50bec8a44
whoops broke travis again
2016-10-25 15:02:16 +01:00
Amish Shah
2b2bbb565d
don't require longjohn
2016-10-25 14:46:50 +01:00
Amish Shah
5844bbb54c
Fix travis builds
2016-10-25 14:38:56 +01:00
Amish Shah
91ba59c43d
Added voice disconnect
2016-10-25 14:18:20 +01:00
Amish Shah
b0921ae0ef
fix econnreset! \o/ #694
2016-10-25 12:52:07 +01:00
Amish Shah
823a339c25
oh no wait i was right the first time
2016-10-24 22:27:23 +01:00
Amish Shah
8a68fea9af
damn it hydar
2016-10-24 22:27:03 +01:00
Amish Shah
d73d6a7340
make some stuffs
2016-10-24 22:26:34 +01:00
Amish Shah
f96c185d92
add the functions to voice connection
2016-10-24 21:39:32 +01:00
Amish Shah
1a5ce878a1
fix some stuff
2016-10-24 20:13:44 +01:00
Amish Shah
5749eb6bb0
actually log the damn reason
2016-10-24 18:56:02 +01:00
Amish Shah
7818d37042
catch cleanup reasons
2016-10-24 18:36:52 +01:00
Amish Shah
17586f0e20
maybe fix again
2016-10-24 17:41:37 +01:00
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