Gus Caplan
d766e727a1
add GuildChannel#clone ( #973 )
...
* add GuildChannel#clone
* e
2016-12-11 09:07:52 +00:00
bdistin
710d3db94f
RichEmbed Tweaks/Improvements ( #964 )
...
* RichEmbed Tweaks/Improvements
Changed .addTimestamp() to .setTimestamp() to bring it inline with all other single value settings.
Changed Field value to StringResolveable from String to bring it inline with typical sendMessage functionality.
* Lint Fix
* Remove Default, Add check for undefined
2016-12-09 22:10:50 -05:00
Slamakans
b79a91b3a9
new errors for richembed yay ( #966 )
...
* Update faq.md (#949 )
* fix docs
* Revert "fixed typo in documentation" (#950 )
* new errors for richembed yay
Simplified the parsing for color arrays.
Throwing some errors on values that would result in Bad Requests.
Changed setAuthor and setFooter's icon parameter to icon_url to match
the embed object's property name.
Changed the docs for setFooter to reflect that icon_url is optional.
* changed docs instead of arg names
* capitalization
2016-12-09 22:09:55 -05:00
Gus Caplan
c5f93eb44e
Add more MessageEmbed stuff ( #970 )
...
* this is why wrapping data 1:1 is a bad idea
* ffs
* whoever wrote role.hexColor is a bad, bad person
* Update MessageEmbed.js
* Update MessageEmbed.js
2016-12-09 22:07:34 -05:00
Gus Caplan
e51fed968d
hydarplz ( #962 )
2016-12-09 20:47:56 +00:00
Will Nelson
275d9d3ce0
fix remove reactions return ( #961 )
2016-12-07 10:12:00 -05:00
Schuyler Cebulskie
a0de75f290
Improve ShardClientUtil warnings/errors
2016-12-07 00:30:36 -05:00
Gus Caplan
b177aefdd6
add user/member lastMessageID ( #959 )
...
* add user.lastMessageID
* stupid
* add member.lastMessageID
2016-12-06 23:46:32 -05:00
Gus Caplan
050d3f9303
fix serialize for webpack ( #960 )
...
* fix serialize for webpack
* Update WebSocketManager.js
* Update WebSocketManager.js
2016-12-06 23:45:31 -05:00
Évelyne Lachance
f9bf0ed5e6
Quick fix for error in guildMemberRole
...
Because Gus is a massive derp.
2016-12-06 18:35:33 -05:00
Gus Caplan
d67ecdd2af
fix authenticating role updates ( #956 )
...
* Update RESTMethods.js
* Update RESTMethods.js
2016-12-06 17:23:40 +00:00
Zack Campbell
37bfdd154c
Fix embed footer text length error ( #955 )
2016-12-05 20:50:25 -05:00
Zack Campbell
daa79b7f97
Add more errors for RichEmbed builder char limits ( #954 )
...
* Add more errors for RichEmbed builder char limits
Might as well if we're erroring on number of fields when that's the one limit that doesn't actually throw a bad request.
* Fix name.length check in previous commit
* Update RichEmbed.js
* Update number of fields error message
2016-12-05 20:33:58 -05:00
bdistin
8eff36b744
Fix reconnect when using WS ( #952 )
...
* Fix reconnect when using WS
* Add disconnect status (fix reconnect with WS)
2016-12-05 21:06:49 +00:00
Schuyler Cebulskie
977e29ceba
👏 @Programmix
2016-12-04 20:25:24 -05:00
Amish Shah
8f8e0b1e52
fix that
2016-12-04 13:08:50 +00:00
Amish Shah
d6218050ba
export constants
2016-12-04 13:08:22 +00:00
Schuyler Cebulskie
bd00bc404c
Make Collection#set/delete return the result of the super call, and clean up equals docs
2016-12-03 21:38:27 -05:00
Slamakans
a0b245bfe1
equals function added ( #948 )
...
Adds an equals function that checks for differing size and differing
key-value pairs, and takes into account the edge case for when there's
an entry for the key, but the value is undefined.
2016-12-03 21:34:26 -05:00
Gus Caplan
638e51a18c
support new guild member role endpoints for cleaner role updates ( #901 )
...
* support new roles endpoints
* use promise chaining
* properties man
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
2016-12-02 23:46:55 -05:00
Programmix
8b7ef0c850
Add Message.fetchWebhook ( #947 )
...
* Add Message.fetchWebhook
* Update Message.js
2016-12-02 22:59:44 -05:00
Schuyler Cebulskie
c0aa6bd30f
Work around Node's module loading
2016-12-02 22:55:37 -05:00
Schuyler Cebulskie
6adc8a9d0d
Move a getter around
2016-12-02 22:47:12 -05:00
Programmix
676a895da7
Add Message - webhookID, isMemberMentioned ( #946 )
...
* Add Message - webhookID, isMemberMentioned
* Update Message.js
* Update Message.js
* Update Message.js
* Update Message.js
2016-12-02 22:35:01 -05:00
Gus Caplan
6cfbf76406
add more embed stuff ( #939 )
...
* add fun embed stuff
* add more docstrings
* fix gawdl3y
* Update RichEmbed.js
2016-12-02 21:59:38 -05:00
Gus Caplan
1e5afc1608
Add etf encoding support with erlpack ( #943 )
...
* the performance from this is astounding
* help uws
* save 15 bytes in webpacks
* update readme
* why is markdown like this
* optimizations
* Update WebSocketManager.js
2016-12-02 21:35:59 -05:00
Schuyler Cebulskie
58c7c2e7b8
Add client ping stuff
2016-12-02 20:58:19 -05:00
Schuyler Cebulskie
2488e1a00f
Improved the definition of structures' client properties
2016-12-02 19:52:27 -05:00
Gus Caplan
edfb27f428
switch to cdn endpoints, add guild splash url ( #932 )
2016-12-01 19:33:15 -05:00
Amish Shah
6043a1f83a
Fix #937 (guild member presence before READY)
2016-11-30 20:31:07 +00:00
Amish Shah
1933451d2f
fix reconnecting
2016-11-28 16:14:34 +00:00
Amish Shah
b335824570
potentially fix #910 , guild sync no longer assumes unknown users are new to the guild
2016-11-28 15:41:57 +00:00
Schuyler Cebulskie
57af84bc95
Clean up Guild#setRolePosition slightly
2016-11-27 20:09:41 -05:00
Schuyler Cebulskie
6dc93a0184
Simplify Role#setPosition
2016-11-27 20:03:44 -05:00
Schuyler Cebulskie
769ea5b50f
Add more detail to error message
2016-11-27 19:39:10 -05:00
Schuyler Cebulskie
8e7cb7fc4e
Revert "Escape the backslash ( #931 )"
...
This reverts commit 5fb4e257c8 .
2016-11-27 18:31:27 -05:00
Vap0r1ze
5fb4e257c8
Escape the backslash ( #931 )
2016-11-27 22:38:42 +00:00
Schuyler Cebulskie
cc9e484276
Fix a thing Gus noticed
2016-11-27 16:23:17 -05:00
Hackzzila
6afd80cf53
Make uws a peer dep, and readd ws ( #928 )
...
* Make uws a peer dep, and readd ws
* if -> else if
2016-11-27 19:59:50 +00:00
Amish Shah
9323882a8d
fix disabledEvents
2016-11-27 12:01:51 +00:00
Schuyler Cebulskie
dc6c1140bc
Improve some JSDocs
2016-11-27 01:08:08 -05:00
Amish Shah
0d574a0678
Address #919 , add WSEventType typedef
2016-11-26 23:01:47 +00:00
Amish Shah
e2932c05f2
whoops fix derp
2016-11-26 22:43:41 +00:00
Amish Shah
27e77d3839
Fix Role.setPosition not returning Role (addresses #902 )
2016-11-26 22:42:33 +00:00
Will Nelson
4ae1f63a97
fix message.edits ( #924 )
2016-11-26 21:59:18 +00:00
Schuyler Cebulskie
c683790de7
Remove old uws-specific code (0.11.1 has the good stuff)
2016-11-25 19:40:53 -05:00
Will Nelson
eedc097f3f
fix playConvertedStream ( #923 )
2016-11-24 17:08:55 -05:00
Schuyler Cebulskie
ac64f8bd23
Improve rest args docs
2016-11-24 11:22:13 -05:00
Gus Caplan
945a2e370a
fix voice ws ( #922 )
2016-11-24 02:39:01 -05:00
Gus Caplan
0008a18deb
Fantastic PR #368 by Gus ( #921 )
2016-11-23 22:16:19 -05:00
Gus Caplan
c91ee7a3e7
Replace ws with uws ( #918 )
...
* change to uws (waiting for the next release tho)
* clean up, fix reconnections (maybe)
* change voice to use uws
* so messy
2016-11-23 19:30:00 -05:00
Schuyler Cebulskie
32879419e2
Fix dispatcher doc
2016-11-23 02:51:10 -05:00
Schuyler Cebulskie
a4193553e2
Optimise websocket events
2016-11-20 23:39:40 -05:00
Schuyler Cebulskie
ee4a8bb3b6
Made Client.browser a getter
2016-11-20 22:45:59 -05:00
Schuyler Cebulskie
f6a60581c4
Remove even more stuff from web dists
2016-11-20 22:40:06 -05:00
Schuyler Cebulskie
3ef16f97c4
Remove dynamic requires
2016-11-20 20:52:39 -05:00
Gus Caplan
2440a4a2c8
Add webpack building ( #907 )
...
* friggin webpack tho
* probably important
* add all the stuff to the package.json
* add minify builds and a nice package.json script to run it all
* clean up
* use uglify harmony branch so we can actually run minify builds that work
* update build system
* make test better
* clean up
* fix issues with compression
*
* c++ requirements in a node lib? whaaaaat?
* fix travis yml?
* put railings on voice connections
* 🖕🏻
* aaaaaa
* handle arraybuffers in the unlikely event one is sent
* support arraybuffers in resolvebuffer
* this needs to be fixed at some point
* this was fixed
* disable filename versioning if env VERSIONED is set to false
* Update ClientDataResolver.js
* Update ClientVoiceManager.js
* Update WebSocketManager.js
* Update ConvertArrayBuffer.js
* Update webpack.html
* enable compression for browser and fix ws error handler
* Update WebSocketManager.js
* everything will be okay gawdl3y
* compression is slower in browser, so rip the last three hours of my life
* Update Constants.js
* Update .gitignore
2016-11-20 19:38:16 -05:00
Schuyler Cebulskie
2bb5aa1fda
Change Collection description
2016-11-20 18:05:01 -05:00
Schuyler Cebulskie
a80a64f8ce
Update Collection docs some more
2016-11-20 17:59:54 -05:00
Schuyler Cebulskie
74ab72fdea
Update Collection docs
2016-11-20 17:39:55 -05:00
Crawl
3fd3588ef2
Fix reaction event names ( #906 )
2016-11-17 03:03:51 -05:00
Schuyler Cebulskie
93948328b4
Fix some Gus code
2016-11-17 02:51:46 -05:00
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
c041b1bc23
fix these things ( #895 )
...
* fix these things
* fix enormous stupid
2016-11-13 02:05:55 -05:00
Schuyler Cebulskie
bb3b709d6e
Nothing to see here 👀
2016-11-13 01:13:13 -05:00
Schuyler Cebulskie
da9d1a3daf
Don't mind me
2016-11-13 01:07:48 -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
ee3a03f707
Make Collection.find/exists error when using with IDs
2016-11-13 00:27:56 -05:00
Schuyler Cebulskie
9d0fcb3936
Fix Message.reply example
2016-11-12 22:15:47 -05:00
Schuyler Cebulskie
c50de74310
Rename Message.addReaction -> Message.react
2016-11-12 22:12:26 -05:00
Schuyler Cebulskie
2c76f5437b
Inline a line, woohoo
2016-11-12 22:08:43 -05:00
Schuyler Cebulskie
99b8d8f031
Clean up docgen code and some reaction stuff
2016-11-12 22:07:17 -05:00
Schuyler Cebulskie
c65d7a10ec
Fix another JSDoc type issue
2016-11-12 21:10:28 -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
318bb52c36
Clean up presence constructor
2016-11-12 17:46:11 -05:00
Schuyler Cebulskie
305070dded
Remove experimental warning on sharding manager
2016-11-12 17:30:07 -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
Amish Shah
544540fb02
Change Role.manageable to Role.editable
2016-11-06 16:49:14 +00:00
HyperCoder
7d02e73a26
Add <Role>.manageable ( #878 )
2016-11-06 16:43:39 +00:00
Slamakans
5dc30d6812
Nullable permission overwrites ( #869 )
...
Made it possible to pass null to GuildChannel.overwritePermissions's
PermissionOverwriteOptions to blank the permission out.
2016-11-06 10:43:31 +00: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
Schuyler Cebulskie
93e6c69bd1
Update sync option docs
2016-11-01 02:28:23 -04:00
Schuyler Cebulskie
b91590d3a8
Fix mispositioned line in ClientOptions doc
2016-11-01 02:24:42 -04: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
a673a97441
Rephrase Collection.find/exists slightly
2016-10-30 22:28:06 -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
d6f55adf52
Add missing exports for reaction stuff
2016-10-30 17:05:18 -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
Programmix
c42e7a15aa
Update documentation (add missing typedefs) ( #861 )
2016-10-30 00:08:32 -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
e80f06a059
3 PRs in one day! ( #851 )
2016-10-27 22:19:32 +01: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
Hackzzila
986b05442d
Make errors great again ( #850 )
2016-10-27 21:49:09 +01:00
Amish Shah
b15896e0a4
Add limit param to reaction.fetchUsers
2016-10-27 21:28:03 +01:00
Amish Shah
5dd76069f8
Simplify voice channel joining
2016-10-27 19:04:24 +01:00
Amish Shah
c4da8d1009
rename file fix
2016-10-27 18:52:49 +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
756d7fc2c1
Fix example
2016-10-27 17:22:11 +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
8e505ed349
Add Message Reaction me
2016-10-27 16:30:02 +01:00
Amish Shah
d129457624
Improve emoji support
2016-10-27 16:12:02 +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
1fc9676ba5
Fix presences, damn it hydra
2016-10-26 22:09:11 +01: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
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
a2f125e416
case sensitive
2016-10-26 19:27:52 +01:00
Amish Shah
ad90705c93
fix bug
2016-10-26 19:21:45 +01:00
Amish Shah
7d04863b66
Revert "fix Client.destroy bugs" ( #839 )
2016-10-26 17:30:18 +01:00
Amish Shah
18e9850e1e
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 17:29:26 +01:00
Amish Shah
4a5cef0ccf
Rename getRecommendedShards to fetchRecommendedShards
2016-10-26 17:29:23 +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
Schuyler Cebulskie
526430b51a
Revert "Fix #837 "
...
This reverts commit add52ce62d .
2016-10-25 18:49:12 -04:00
Amish Shah
add52ce62d
Fix #837
2016-10-25 22:03:04 +01: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
b24e0b347e
Merge remote-tracking branch 'origin/indev' into indev-voice
2016-10-24 16:26:41 +01:00
Amish Shah
6093dac554
Fix #776 (guildMemberAdd firing for existing members)
2016-10-24 15:57:07 +01:00
Amish Shah
d42ac98339
Fix #775 (permission overwrites not taking into account previous values)
2016-10-24 15:47:31 +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
Gus Caplan
44bae385c2
update clientUser#setAvatar ( #819 )
...
* WHO DID THIS
* e
* some people have base64 fetishes i guess
Signed-off-by: Gus Caplan <fluffyrobotcheese@gmail.com>
2016-10-24 01:09:38 -04:00
Amish Shah
c86ff6ad1a
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-23 20:51:07 +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
Schuyler Cebulskie
c9c6e8a357
Added note about bot accounts to fetchMessage
2016-10-23 14:59:04 -04:00
Gus Caplan
3e1425af04
allow TextBasedChannel#bulkDelete to take a number ( #821 )
...
* useful
* update docs
* Update TextBasedChannel.js
* update docs
* fix docs
* Update TextBasedChannel.js
2016-10-23 14:51:54 -04: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
9f7c630796
lel ( #824 )
2016-10-22 14:51:21 -04:00
Schuyler Cebulskie
caec3648c0
Added onlyInlineCode to escapeMarkdown
2016-10-21 02:35:36 -04:00
Schuyler Cebulskie
d0463926c4
Add maxMatches CollectorOption
2016-10-18 21:23:39 -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
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
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
Schuyler Cebulskie
8d777db1d1
Clean up status type error
2016-10-03 20:27:41 -04:00
Schuyler Cebulskie
e24c9c271e
Quite possibly fix annoying bug Evie was complaining about
2016-10-03 20:25:39 -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
Schuyler Cebulskie
51f30d6e4c
Add nickname mention format to GuildMember.toString
2016-10-02 01:51:14 -04:00
Programmix
d35372d3e9
Fix MessageCollector.next edge case ( #765 )
2016-10-02 00:23:35 -04:00
Amish Shah
c286c1443f
voice rewrite part 1
2016-10-01 22:23:00 +01:00
Programmix
1fcc618532
Fix removeListener call ( #762 )
2016-10-01 16:22:32 -04:00
Programmix
34168eb832
Create MessageCollector.next ( #761 )
...
Allows using await with message collectors (ES7)
Hydrabolt approved™
2016-10-01 20:29:15 +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
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
93cf34a814
I found some more.
2016-10-01 02:58:32 -04:00
Schuyler Cebulskie
d1e07674b8
Make GuildMember.kickable/bannable take role IDs into account
2016-10-01 02:54:25 -04:00
Schuyler Cebulskie
db815d4d9f
I'm gonna need more derps to fix.
2016-10-01 02:47:17 -04:00
Schuyler Cebulskie
d246982a61
Fix another derp wooo
2016-10-01 01:42:13 -04:00
Schuyler Cebulskie
a441aaf546
Fix derp in GuildMember.kickable/bannable
2016-10-01 01:27:11 -04: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
bdistin
428ee2f718
Added .missingPermissions() ( #756 )
...
* Added .missingPermissions()
* Added .missingPermissions()
* Fixed docs for .missingPermissions()
* Fixed Travis CI trailing spaces?
* Fixed Travis CI trailing spaces?
2016-09-30 22:08:19 +01: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
b396d15b37
Remove usage of path.join for version export
2016-09-30 02:58:18 -04:00
Schuyler Cebulskie
5997aecc22
Rearrange events some more
2016-09-30 02:53:57 -04:00
Schuyler Cebulskie
1473f8c462
Rearrange event constants
2016-09-30 02:50:20 -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
f0741f2288
Add ShardClientUtil export
2016-09-27 21:18:22 -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
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
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
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
38366f627d
Fix transmitting errors through IPC
2016-09-27 02:40:29 -04: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
c26fc49caf
Fix property fetching
2016-09-26 23:34:47 -04:00
Schuyler Cebulskie
4fe30aa4d3
Rip out client sharding logic into its own class
2016-09-26 23:23:56 -04:00
Schuyler Cebulskie
d240fe4182
Improve prepend/append descriptions
2016-09-26 23:21:44 -04:00
Schuyler Cebulskie
36f4df2931
Capitalise two letters
2016-09-26 23:18:39 -04:00
Schuyler Cebulskie
ecbc591c95
Update setStatus docs for DND, other docs - setStatus code needs updating
2016-09-26 23:16:29 -04:00
Schuyler Cebulskie
9ebe5e64b7
Fix Hydra's disregard of the alphabet
2016-09-26 22:58:23 -04:00
Schuyler Cebulskie
ef63f0ee8b
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-09-26 22:56:11 -04:00
Schuyler Cebulskie
e5f4823bd4
Document do not disturb
2016-09-26 22:56:07 -04:00
Schuyler Cebulskie
0c0c1da0d5
Fix Presence/Game.equals with null/undefined
2016-09-26 22:53:35 -04:00
Schuyler Cebulskie
909af2084f
Clean up Presence
2016-09-26 22:53:08 -04:00
Schuyler Cebulskie
f2cd48d94b
Reorganise Presence
2016-09-26 22:50:26 -04:00
Gus Caplan
3e9253827f
add manage emojis constant ( #744 )
...
* add manage emojis constant
* this is why you don't commit on github i guess
2016-09-26 21:07:16 -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
761b8cfb8d
fix docs
2016-09-25 14:28:51 +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
725da8d8a5
Merge branch 'bugfix/docs' of https://github.com/hkwu/discord.js into hkwu-bugfix/docs
2016-09-24 19:53:23 +01:00
Amish Shah
14b8360453
fix doc issue with role
2016-09-24 19:47:50 +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
Gus Caplan
bd1449bc5a
make login sane ( #735 )
2016-09-24 17:55:31 +01:00
Kelvin Wu
bd465108a7
Fix return type in docs.
2016-09-24 11:58:51 -04:00
Schuyler Cebulskie
116e6bb4c8
Clean up totalShards default
2016-09-24 02:46:55 -04:00
Schuyler Cebulskie
d9bc5cea1e
Small cleanups
2016-09-24 02:43:27 -04:00
Schuyler Cebulskie
13e2b923e8
Return existing promise instead of failing, mark 2
2016-09-24 02:29:15 -04:00
Schuyler Cebulskie
f1bfd55233
Fix Guild.createChannel example
2016-09-24 02:21:06 -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
Schuyler Cebulskie
65b93532ce
Add additional shard count checks
2016-09-24 00:51:31 -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
063be5cee2
smarter sharding™ ( #732 )
2016-09-23 21:43:16 +01: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
4bf6ad30f3
Remove a line
2016-09-22 23:10:00 -04:00
Schuyler Cebulskie
90f05a34cb
Return the existing promise instead of erroring
2016-09-22 23:01:37 -04: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
6ba0dd26a6
Reorganise Guild methods
2016-09-21 16:04:33 -04:00
Schuyler Cebulskie
e9a7a06d52
Improve docs for voiceConnection/connection
2016-09-21 16:03:05 -04:00
Schuyler Cebulskie
a27f6c96bb
Fix & clean up Guild.voiceConnection and VoiceChannel.connection
2016-09-21 16:01:08 -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
Jacob
126865384e
Compensate for API's stupid-ass positions in highestRole ( #721 )
...
* fix edge cases of highestRole not returning the highest role
* fix line length
* move space
* Fix formatting
2016-09-21 01:31:33 -04:00
Schuyler Cebulskie
46c28c0d05
Add Role.members
2016-09-20 23:27:56 -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
718f61a732
Fix various Guild properties getting unset
2016-09-19 19:36:14 -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
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
Schuyler Cebulskie
46d7dedc85
Add Message.editCode
2016-09-19 15:14:51 -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
7957bc82cd
Fix member nicknames being unset ( #703 )
2016-09-19 14:45:30 -04:00
Schuyler Cebulskie
3441e2384f
Fix tiny-ass typo
2016-09-19 14:42:22 -04:00
Schuyler Cebulskie
3e114b9af7
Normalise some GuildMember values
2016-09-19 14:41:36 -04:00
Schuyler Cebulskie
f3bab30cce
Add missing MessageCollector export
2016-09-19 13:52:59 -04:00
Schuyler Cebulskie
c5982b0b90
Made MessageEmbedThumbnail/Provider/Author accessible
2016-09-19 13:46:37 -04:00
Schuyler Cebulskie
cb80d69649
Move MessageCollector into its own file
2016-09-19 13:41:17 -04:00
Schuyler Cebulskie
221fc7a103
Exposed all structures
2016-09-19 13:31:44 -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
039315a9a3
Replace local usages of GuildMember.id with user.id
2016-09-19 01:44:46 -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
77e171e599
Document Guild.ownerID
2016-09-19 01:38:18 -04:00
Schuyler Cebulskie
3fcc5183dc
Made GroupDMChannel.owner a getter and add ownerID
2016-09-19 01:36:01 -04:00
Schuyler Cebulskie
b8e3094b14
Add GuildMember.highestRole/kickable/bannable
2016-09-19 01:31:53 -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
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
meew0
74b9e5d643
Update default permissions ( #706 )
...
During the nickname update the default value was changed from
36953089 to 104324097 to include some of the new nickname permissions.
2016-09-15 17:09:57 -07:00
Amish Shah
420f2ecdd4
Add Guild.voiceConnection and VoiceChannel.connection
2016-09-15 15:38:32 +01:00
Schuyler Cebulskie
0405b1a59f
Make TextBasedChannel.sendCode escape codeblocks
2016-09-14 21:20:58 -04: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
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
Schuyler Cebulskie
cdf3136cde
Make version a regular property instead of getter
2016-09-13 01:34:45 -04:00
Schuyler Cebulskie
ec6453a191
Add version export, and cleanup
2016-09-13 01:32:54 -04:00
Schuyler Cebulskie
136cf66eb0
Fix split prefix with undefined/null lang
2016-09-13 01:18:51 -04:00
Schuyler Cebulskie
862ec6a5be
Allow null/undefined TextBasedChannel.sendCode lang
2016-09-13 01:01:11 -04:00
Schuyler Cebulskie
9cd249342b
Teensy reorganisation
2016-09-12 21:40:15 -04: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
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
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
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
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
774b4d4694
Fix GuildMember.hasPermission(s) explicit for owner
2016-09-12 00:08:12 -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
ebaaa65741
Make GuildMember.hasPermissions check owner
2016-09-11 23:58:01 -04:00
Schuyler Cebulskie
b88498271c
Fix Message.isMentioned(null/undefined)
2016-09-11 23:56:31 -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
Schuyler Cebulskie
d7bcf9564f
Clean up recent User changes a bit
2016-09-11 23:34:09 -04: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
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
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
e7eee3410a
This is unnecessary.
2016-09-11 10:59:34 -04:00
Schuyler Cebulskie
7ff9ac2bcc
Add TextBasedChannel.sendCode and make User/GuildMember partial implementations
2016-09-11 10:55:41 -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
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
272555d9ae
Better.
2016-09-11 02:18:22 -04:00
Schuyler Cebulskie
350c893ead
Add GuildMember.toString
2016-09-11 02:13:49 -04: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
Schuyler Cebulskie
68879777d8
Rename EvaluatedPermissions.permission to .raw
2016-09-10 22:37:38 -04:00
Amish Shah
e75dd2638c
Add Burst requests - addresses #656
2016-09-10 22:12:10 +01:00
Amish Shah
48f84c6178
Fix nicknames not changing
2016-09-10 21:39:09 +01:00
Amish Shah
de6042a4d7
Merge branch 'master' into indev
2016-09-10 19:30:47 +01:00
Schuyler Cebulskie
3e39861534
Fix #677
2016-09-10 14:22:09 -04: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
537b372b42
Fix another ESLint failure
2016-09-10 12:46:22 -04:00
Schuyler Cebulskie
a5a269b940
Fix Hydra's ESLint failure
2016-09-10 12:42:04 -04:00
Schuyler Cebulskie
91a7d4f80e
Move channel type to constructors
2016-09-10 12:39:28 -04:00
Amish Shah
3f52ba27c9
DMChannel now uses data manager to instantiate users
2016-09-10 17:31:56 +01:00
Amish Shah
78673139ca
Move _typing to constructor
2016-09-10 17:30:20 +01: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
c6aa16277a
Add TextChannel.members
2016-09-10 17:06:10 +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
cd404fc7d3
Merge branch 'master' into indev
2016-09-10 11:35:36 +01:00
bdistin
9b45294814
Update Guild.js ( #673 )
2016-09-10 07:31:37 +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
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
01d032abee
Merge remote-tracking branch 'refs/remotes/origin/master' into indev
...
# Conflicts:
# src/structures/Guild.js
2016-09-09 00:45:35 -04: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
4be7a1bfd1
My ESLint is broken
2016-09-08 22:30:27 -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
Schuyler Cebulskie
bbc9df0b0d
Improve cleanContent code
2016-09-08 22:05:30 -04:00
Tim Hwang
8f04fae4c0
Change _updateMember's notSame check from && to || ( #665 )
2016-09-08 21:55:50 -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
Brian Tanner
47a164bd36
fix epipe when skipping songs, probably fixes econnreset ( #662 )
2016-09-08 21:53:49 -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
LewisHogan
9bef99c75c
Added cleanContent getter ( #644 )
...
* Added cleanContent getter which replaces mentions with the equivalent
text.
(Majority of code implemented by Gus).
* Fixed bug where invalid mentions would cause crash
* Fixed not cleaning @everyone and @here
* Fixed only detecting first @here or @everyone, resolved to test software (and learn regular expressions) in the future
2016-09-08 16:38:17 -04:00
Schuyler Cebulskie
7fe032c785
Make default max_message_cache match docs
2016-09-08 03:01:49 -04:00
Schuyler Cebulskie
57acd4f41a
Add GuildMember.permissions/hasPermission
2016-09-08 02:29:51 -04:00
Schuyler Cebulskie
594836b1bf
Rewrite Collection.map/filter, and add some/every
2016-09-08 02:26:28 -04:00
Schuyler Cebulskie
978cf9d87f
Fix permission overwrites for @everyone
2016-09-07 23:42:14 -04:00
Schuyler Cebulskie
465ff074e1
Prevent Guild.fetchMember from messing with fetchMembers
2016-09-07 23:12:36 -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
818649b94f
Organise structure methods
2016-09-07 02:07:39 -04:00
Schuyler Cebulskie
73cb34ed37
Move _typing to text-based channels
2016-09-07 01:34:46 -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
Gus Caplan
b9caa2ee5d
when fetch_all_members is enabled, new guilds should also do that ( #623 )
...
* when fetch_all_members is enabled, new guilds should also do that
* Fix Gus' derp (#1 )
* Fix my derp (#2 )
* Fix another of Gus' derps (#3 )
2016-09-07 00:43:06 -04:00
Programmix
ab4707f9b4
Fix crash on role update ( #648 )
2016-09-07 00:26:34 -04:00
Schuyler Cebulskie
b7f582b7f0
Clean up a bunch of stuff
...
- Channel typing data is now a Map
- Client properties on structures are now non-enumerable and
non-configurable
2016-09-07 00:24:45 -04:00
Schuyler Cebulskie
c7b4cf3d3f
Add Guild.fetchMember
2016-09-06 20:36:58 -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
Programmix
17bee8084e
Add Message.edits ( #636 )
...
* Add Message.edits
* Make travis happy
* Change @type for consistency
2016-09-06 19:20:35 -04:00
Schuyler Cebulskie
752e12116e
Move topic to TextChannel ( Fixes #642 )
2016-09-06 18:05:14 -04:00
Schuyler Cebulskie
9d694d2b67
Add ability to ban non-members from guilds ( #638 )
2016-09-06 16:55:42 -04:00
Schuyler Cebulskie
e1bda864f7
Add createRole with data ( #637 )
2016-09-06 16:54:06 -04:00
Schuyler Cebulskie
7fea0a3937
Rename createdAt -> creationDate ( #628 )
...
* Rename createdAt -> creationDate
Also make it return a Date like it says, and small cleanup
* Build docs
2016-09-06 16:52:10 -04:00
Schuyler Cebulskie
910f47240d
Move and document GuildChannel.guild ( #613 )
2016-09-06 16:45:09 -04:00
HyperCoder
943767dc83
Add <User/Guild/Role/Channel>.createdAt ( #620 )
...
* Add Role.createdAt
* Add Channel.createdAt
* Add Guild.createdAt
* Add User.createdAt
* Change createdAt to Unix Timestamp
* Add createdAt to Emojis
* Change createdAt to Unix Timestamp
2016-09-05 15:59:27 +01:00
Tyler
6dfe160c52
Add get status() for Client ( #622 )
...
* Add get status() for Client
* Fix trailing space
2016-09-05 07:52:15 +01:00
Snazzah
bd113eef06
MessageEmbedAuthor ( #619 )
2016-09-05 07:22:51 +01:00
Schuyler Cebulskie
dc7b07022c
Add GuildMember.addRole/addRoles ( #615 )
...
* Add GuildMember.addRole/addRoles
* Add GuildMember.removeRole/removeRoles
2016-09-05 07:18:51 +01:00
Schuyler Cebulskie
799054df00
Add more exports ( #610 )
2016-09-05 07:16:31 +01:00
Schuyler Cebulskie
2c6b804fc9
Improve sharding stuff ( #608 )
...
* Improve sharding stuff
* Build docs
2016-09-04 22:02:52 +01:00
Amish Shah
7b870d13de
Fix collection.find/findAll docs
2016-09-04 21:41:19 +01:00
Schuyler Cebulskie
5bd258a557
Allow sendMessage disableEveryone to override client option ( #605 )
2016-09-04 21:05:38 +01:00
Hackzzila
3b7d5e869b
Added disable_everyone ( #603 )
...
* Added disable_everyone
* Fixed docs
2016-09-04 19:03:59 +01:00
Manuel Kraus
48e7fad1c9
Expose TextBasedChannel#fetchMessage() ( #602 )
2016-09-04 18:46:29 +01:00
Amish Shah
bcab8805af
Add client.emojis and fix eslint
2016-09-04 17:54:31 +01:00
Amish Shah
db9d5b8110
Make setStatus take a streaming URL param
2016-09-04 17:48:02 +01:00
Amish Shah
bf3c283998
Add Message.isMentioned
2016-09-04 17:21:50 +01:00
Amish Shah
9f0db9d0d8
join arrays with new lines when sending as messages
2016-09-04 17:16:01 +01:00
Amish Shah
0454674ceb
document shard
2016-09-04 12:37:42 +01:00
Amish Shah
7475f734ac
Add debug stuff
2016-09-04 12:31:16 +01:00
Amish Shah
f23c07a08e
document sharding stuff
2016-09-04 12:27:06 +01:00
Amish Shah
b1a25bd176
Add sharding manager
2016-09-04 12:21:07 +01:00
Amish Shah
906672e538
Merge branch 'indev-rewrite-sharding' into indev-rewrite
2016-09-04 12:17:42 +01:00
Amish Shah
89145b121d
add info to Guild
2016-09-04 12:15:39 +01:00
Amish Shah
1155c482f1
make client.readyTime a date
2016-09-04 11:55:23 +01:00
Amish Shah
9c915d1e0a
Fix constants errors not giving a stacktrace
2016-09-04 11:53:48 +01:00
Amish Shah
4d2bb891a9
Fix doc gen
2016-09-04 11:39:40 +01:00
Amish Shah
0c32e590a8
fix constants reference
2016-09-04 11:35:21 +01:00
Schuyler Cebulskie
0b908f5bce
Cleanup Part 2: Electric Boogaloo (Reloaded) ( #594 )
...
* Cleanup Part 2: Electric Boogaloo (Reloaded)
* Moar cleanup
* Tweak NOT_A_PERMISSION error
2016-09-04 10:08:09 +01:00
Amish Shah
5a9c42061f
Fix permissionsFor
2016-09-03 23:46:39 +01:00
Amish Shah
16fbbde35c
Make syncGuilds off limits to bot accounts
2016-09-03 23:25:26 +01:00
Schuyler Cebulskie
5af09d335c
Switch to maps for action deleted + more cleaning ( #592 )
2016-09-03 23:21:31 +01:00
Amish Shah
a3b9b0f1b4
Fix VC docs
2016-09-03 23:11:55 +01:00
Amish Shah
efd1d0c738
rewrite some docs and refactor some names
2016-09-03 23:06:58 +01:00
Amish Shah
7f9ea762ed
Add Collection.map();
2016-09-03 23:00:14 +01:00
Amish Shah
fced6983d9
GuildMember.roles is now a collection instead of an array
2016-09-03 22:56:33 +01:00
Schuyler Cebulskie
59a5862f2d
Clean up Actions code ( #591 )
2016-09-03 22:48:51 +01:00
Amish Shah
432c5ccc82
Add volume modification to dispatcher
2016-09-03 22:27:43 +01:00
Schuyler Cebulskie
64d89b3748
Replace a few rejections with throw ( #590 )
2016-09-03 21:36:54 +01:00
Amish Shah
44b34154e8
guarantee promise resolution for voice connections
2016-09-03 21:32:11 +01:00
Amish Shah
7ff2568cfc
Fix collectors and make guild sync add previously unknown members
2016-09-03 21:21:15 +01:00
Amish Shah
09dee3d46a
Fix ready never firing for truly unavailable guilds
2016-09-03 21:10:10 +01:00
Schuyler Cebulskie
68acf37fd4
Add stricter/better ESLint config ( #589 )
...
* Add stricter/better ESLint config
* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Amish Shah
a172fffd76
Actually add GUILD_SYNC
2016-09-03 17:59:16 +01:00
Amish Shah
513fdabd19
Add GUILD_SYNC support (user accounts are fixed now)
2016-09-03 17:58:59 +01:00
Schuyler Cebulskie
02324fbecb
Add string guild resolving ( #587 )
2016-09-03 17:01:50 +01:00
Schuyler Cebulskie
d97ce2e181
Remove all string object references ( #586 )
2016-09-03 16:58:28 +01:00
Schuyler Cebulskie
27652b94af
Make JSDocs follow general conventions ( #582 )
...
* Make JSDocs follow usual conventions
* Fix StringResolvable name
* Make function lowercase
2016-09-03 09:57:25 +01:00
Amish Shah
1cbd1bda46
fix the bug in a better way
2016-09-02 16:57:14 +01:00
Amish Shah
7d27667afc
Fix weird guild ug
2016-09-02 16:56:13 +01:00
Amish Shah
ae17a89191
Reduce memory usage by dynamically creating Dates
2016-09-02 13:18:27 +01:00
Schuyler Cebulskie
b8a5669fda
Overhaul channel typing system ( #576 )
...
* Overhaul channel typing system
* Fix ESLint error
* Add channel.isTyping()
* Add count argument to startTyping
* Add range checking to startTyping count
* Better range checking for count
* Add channel.getTypingCount()
* Change getTypingCount() to typingCount getter
* Switch isTyping() to typing getter
* Fix new methods and switch to Map
* Fix applyProp so getters/setters will work
* Add default value to force
2016-09-02 13:00:33 +01:00
Hyper-Coder
168256469e
Re add <Client>.uptime ( #579 )
2016-09-02 00:03:33 +01:00
Amish Shah
43f1c952c3
do more docs
2016-09-01 17:18:05 +01:00
Amish Shah
df9cab3864
whoops fix docs
2016-09-01 15:55:14 +01:00
Amish Shah
8d9a778320
fix guild owner
2016-09-01 15:54:58 +01:00
Amish Shah
552d603782
Try and fix author bug?
2016-09-01 14:50:45 +01:00
Amish Shah
aee547d28e
fix docs
2016-09-01 13:10:51 +01:00
Amish Shah
a725147f17
Document EvaluatedPermissions
2016-09-01 13:08:55 +01:00
Amish Shah
28ad224207
Add GuildMember as user resolvable
2016-09-01 12:05:29 +01:00
Amish Shah
1298fefa2f
Fix message docs
2016-09-01 10:08:46 +01:00
Amish Shah
5f5ee18543
Move message.mentionEveryone to message.mentions.everyone
2016-08-31 21:42:14 +01:00
Amish Shah
e8c1c228d0
Refactor getMessages to fetchMessages
2016-08-31 21:34:49 +01:00
Amish Shah
ff3148ddd4
Add awaitMessages
2016-08-31 21:13:38 +01:00
Amish Shah
91b1fa8359
Add CollectorOptions.max
2016-08-31 20:48:51 +01:00
Amish Shah
a638b6369a
Stop multiple end events
2016-08-31 20:44:35 +01:00
Amish Shah
e42f6b1024
Fix documentation
2016-08-31 20:40:13 +01:00
Amish Shah
1da8ec7ddd
Create TextBasedChannel MessageCollector
2016-08-31 20:39:02 +01:00
Amish Shah
892e162229
fix setTyping and many other timeout/interval based methods
2016-08-31 19:28:00 +01:00
Amish Shah
7f09da5d35
more shard stuff
2016-08-31 14:04:25 +01:00
Amish Shah
631626a3f9
Merge remote-tracking branch 'origin/indev-rewrite' into indev-rewrite-sharding
2016-08-31 13:43:18 +01:00
Amish Shah
b18aaa8711
Fix channel permission overwrites not being accounted for ( #574 )
2016-08-31 13:41:13 +01:00
Amish Shah
8c3ae2fd90
work on sharding
2016-08-31 13:36:05 +01:00
Schuyler Cebulskie
dbda589088
Massively improve performance of message caching ( #573 )
2016-08-31 10:05:15 +01:00
Schuyler Cebulskie
f02cc27735
Fix ClientDataManager.killUser ( #572 )
2016-08-30 19:31:14 +01:00
Amish Shah
cde3bcb3bd
Tidy up shards a bit
2016-08-30 19:07:13 +01:00
Schuyler Cebulskie
bce3cd2b8b
Add key/value validation to Collection.find/findAll ( #569 )
...
* Add key/value validation to Collection.find/findAll
* Fix ESLint errors
2016-08-30 18:20:20 +01:00
Amish Shah
c70dfa83fb
Add ShardManager
2016-08-30 17:26:32 +01:00
Amish Shah
4f41a86dd3
Clear timeout IDs from array after execution
2016-08-30 14:20:33 +01:00
Amish Shah
680ac48e3d
Emit error instead of console.log
2016-08-30 14:06:16 +01:00
Amish Shah
49d525109f
Fix ESLint
2016-08-30 13:55:55 +01:00
Amish Shah
907c1ed9f9
Add message.system
2016-08-30 13:47:52 +01:00
Amish Shah
0860d5210b
Add message.member if available
2016-08-30 13:40:44 +01:00
Amish Shah
d249aa10cc
Add client.destroy();
2016-08-30 13:05:57 +01:00
Schuyler Cebulskie
56352220af
Make Collection.find and findAll use .values() ( #567 )
...
* Make Collection.find and findAll use .values()
* Make Collection.deleteAll use .values()
2016-08-30 09:47:11 +01:00
Schuyler Cebulskie
60a1ba3088
Fix Collection.exists ( #566 )
2016-08-30 09:46:40 +01:00
Hyper-Coder
4f130a1a58
Fixed sendFile ( #565 )
...
https://images.typicalbot.com/i/57c4dcc5d74b7.png
2016-08-30 09:43:03 +01:00
Amish Shah
c6688b94e6
add guildmember.nickname to docs
2016-08-29 22:55:01 +01:00
Amish Shah
090234cef2
Fix guild.owner doc
2016-08-29 22:53:52 +01:00
Manuel Kraus
817bea5a70
Add timeout to Message#delete() ( #563 )
2016-08-29 20:15:41 +01:00
Amish Shah
52adb3d8b2
undo fix whoops ¯\_(ツ)_/¯
2016-08-29 19:13:47 +01:00
Amish Shah
1e2e940b98
File resolving can use http too now
2016-08-29 19:10:05 +01:00
Amish Shah
78e0d88f55
Make file resolving non-blocking for local paths
2016-08-29 19:08:36 +01:00
Amish Shah
897cbfec77
Fix leaving guilds if you are the owner
2016-08-29 19:03:50 +01:00
Manuel Kraus
d9ae732bfd
Add sendFile function ( #562 )
...
* sendFile
* Add default value to filename
* eslint
* (╯°□°)╯︵ ┻━┻
2016-08-29 19:01:05 +01:00
Amish Shah
df934eccaf
Fix voice losing count
2016-08-29 16:41:33 +01:00
Amish Shah
3541b0a88f
Add MessageEmbed and subclasses
2016-08-29 15:53:57 +01:00
Amish Shah
f6c95de85d
Create MessageAttachment class
2016-08-29 15:35:44 +01:00
Amish Shah
5d06be6333
Add Emoji class
2016-08-29 15:18:41 +01:00
Amish Shah
144638e746
Experimental ClientOptions.fetch_all_members
2016-08-29 13:54:35 +01:00
Amish Shah
001460acc0
Add guild.fetchMembers() 🎉 🎉
2016-08-29 13:20:06 +01:00
Amish Shah
727f3de45b
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-29 12:44:37 +01:00
Amish Shah
fe58105d04
Fix memberCount inaccuracy
2016-08-29 12:44:29 +01:00
Schuyler Cebulskie
0b4f4a559c
Make existence checks use .has(id) ( #559 )
2016-08-28 22:54:10 -07:00
Amish Shah
b44a3770d9
Added guild.fetchInvites()
2016-08-28 21:00:01 +01:00
Amish Shah
1dba048d2e
Add invite.delete()
2016-08-28 20:51:27 +01:00
Amish Shah
ba3d104619
Added guildChannel.createInvite();
2016-08-28 20:32:37 +01:00
Amish Shah
9f1475f358
Add TextBasedChanel.fetchPinnedMessages()
2016-08-28 19:42:40 +01:00
Amish Shah
a57d6b723a
Add message.pin() and .unpin();
2016-08-28 19:03:08 +01:00
Amish Shah
a91fcd5cab
Add ChannelPinsUpdate event
2016-08-28 18:50:55 +01:00
Amish Shah
309bc5da1f
document guildMemberAdd
2016-08-28 18:12:52 +01:00
Amish Shah
6bc7220ded
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-28 17:41:19 +01:00
Amish Shah
ae862c38ff
Remove guild.kick for consistency
2016-08-28 17:40:45 +01:00
abal
ac7e1a052c
Add opusscript as a possible opus encoder ( #558 )
...
* Add opusscript as a possible opus encoder
* Make weird eslint rule happy
2016-08-28 17:35:59 +01:00
Amish Shah
a959cd339c
Fix inaccuracy in VoiceReceiver docs
2016-08-27 23:15:21 +01:00
Hackzzila
83b33c5046
Added MessageOptions to the docs and added an options param to sendTTSMessage ( #555 )
...
* Added MessageOptions to the docs and added an options param to sendTTSMessage
* Docs
2016-08-27 23:06:14 +01:00
Amish Shah
948a18dfe2
Fix docs.json
2016-08-27 22:52:21 +01:00
Amish Shah
ef0f38930f
Added Guild.fetchBans()
2016-08-27 22:48:48 +01:00
Amish Shah
22062f1f86
Added guild.unban
2016-08-27 22:31:21 +01:00
Hackzzila
2c056b6418
Added nonce support to sendMessage ( #553 )
2016-08-27 22:01:51 +01:00
Amish Shah
4d6c604322
Added GuildMember.ban()
2016-08-27 21:59:35 +01:00
Amish Shah
6a1a36813f
Add TextBasedChannel.setTyping(bool)
2016-08-27 21:44:08 +01:00
Schuyler Cebulskie
6faa409e96
Add note about requiring bot accounts ( #552 )
2016-08-27 20:22:08 +01:00
Amish Shah
b356ccf1e5
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-27 19:40:18 +01:00
Amish Shah
9ea9623de0
Add Permission Overwrites deletion
2016-08-27 19:40:14 +01:00
Schuyler Cebulskie
7ae12ab325
Rename client.cacheUser to client.fetchUser ( #551 )
2016-08-27 19:28:18 +01:00
Amish Shah
135ab02104
fix eslint
2016-08-27 18:55:20 +01:00
Amish Shah
6293f28ad9
Add guild member nickname setting n stuff
2016-08-27 18:55:08 +01:00
Amish Shah
8a1bfe559d
Add guildmember nickname tracking
2016-08-27 17:54:58 +01:00
Amish Shah
50c6fa3433
Role hex stuff
2016-08-27 17:46:13 +01:00
Amish Shah
f2708dd26f
Add playPCMStream
2016-08-27 15:48:10 +01:00
Amish Shah
3718841c7c
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-27 15:41:42 +01:00
Amish Shah
19d976748c
VoiceReadable stream now ends when a member leaves a VoiceChannel
2016-08-27 15:35:55 +01:00
Schuyler Cebulskie
f944dce5c7
Add client.cacheUser method ( #548 )
...
* Add client.cacheUser method
* Fixed ESLint issues
* Added existence check first
2016-08-27 15:22:07 +01:00