Will Nelson
0a337a4646
make token not enumerable ( #1620 )
2017-06-25 20:48:30 +01:00
Gus Caplan
63e54982f4
Errors Standardization ( #1246 )
...
* errors and stuff
* more errors
* all the errors
* fix build
2017-06-25 18:48:05 +01:00
Gus Caplan
602fe06f88
update docs for discord api error ( #1575 )
...
* aaaaa
* Update DiscordAPIError.js
2017-06-24 23:36:48 +01:00
Gus Caplan
cada8763a9
clean up cdn resources ( #1597 )
...
* Create Constants.js
* Update Constants.js
2017-06-24 23:32:48 +01:00
aemino
4ae4c97589
Fix VoiceConnection#authenticateFailed race condition ( #1601 )
2017-06-24 23:28:49 +01:00
SpaceEEC
201ecd25a2
renamed OAuth2Application#reset to resetSecret and added resetToken ( #1541 )
2017-06-24 23:26:09 +01:00
Gus Caplan
7f8cc9c297
sanity changes to search ( #1593 )
...
* Create Search.js
* Create Guild.js
* Create TextBasedChannel.js
* Create Search.js
* Create Search.js
* Create Guild.js
* Create TextBasedChannel.js
* Create Search.js
2017-06-24 23:23:45 +01:00
Mythic
fd79539ec3
Improve Message's ID attribute documentation ( #1450 )
...
Remove the implication that a Message object's ID is unique only to the channel it was sent on
Message ID's are snowflakes, and as stated in Discord's API documentation, globally unique throughout Discord
2017-06-24 23:21:21 +01:00
SpaceEEC
e671a010cb
added Guild#setExplicitContentFilter ( #1583 )
2017-06-24 23:03:37 +01:00
SpaceEEC
4f23822264
Wait for the websocket event when creating a guild ( #1524 )
...
* Wait for the websocket event when creating a guild
* using TOOK_TOO_LONG error
* resolve after timeout with an unavailable guild object
2017-06-23 20:49:56 +01:00
Gus Caplan
66cc5b2b53
URI Encoding for reasons ( #1606 )
2017-06-17 10:47:37 +01:00
SpaceEEC
00eebd34cb
Correctly mapping overwrites when creating a channel and renamed all relevant property names as of #1562 ( #1570 )
...
* using correct properties to apply permissionOverwrites
and fixed `GuildChannel#clone`
* also arrays should be mapped and correct properties taking priority
* changed .deny and .allow to .denied and .allowed respectively
* whoops
2017-06-16 12:49:13 +02:00
DeJay
35e8601b3a
Replacing ticks ( #1589 )
...
http://i.imgur.com/7Xbaawm.png
2017-06-13 21:55:54 +02:00
SpaceEEC
ecb8424f52
fixed typo in Guild#createEmoji ( #1588 )
2017-06-12 11:26:36 -04:00
Amish Shah
b694ab1b80
Add internal sharding options
2017-06-11 11:36:58 +01:00
SpaceEEC
d6041f9fb3
Added Client#status and Message#type typedefs ( #1571 )
...
* typedef for MessageTypes and linked Client#status to Status
* should be singular
* typedef for Voiceconnection#status
2017-06-09 16:27:49 +02:00
Crawl
7b3a005b65
Remove createCollector from all channels
2017-06-08 14:51:21 +02:00
Crawl
0898e1dd5b
Fix createMessageCollector example
2017-06-08 14:50:26 +02:00
Évelyne Lachance
06f4c679d3
Add count optional argument to Collection methods ( #1552 )
...
* Add `count` optional argument to Collection methods
[NON-BREAKING CHANGE]
An optional `count` argument is added to the following methods:
- random() and randomKey()
- first() and firstKey()
- last() and lastKey()
If `count` is used, the method returns an array instead of only the value. Performance impact non-existent for existing code. Performance for returning an array has been measured and this is the fastest I could find (array[i] = value is faster than array.push()).
* Update Collection.js
Fixed spacing/line length errors according to suggestions by codacy/pr
* Fixed docs
Added proper `@returns {*|Array}` as the methods might return either. Also added params where missing (whoops)
* Further doc fixes
Per Crawl's comments, fixed (i + 1) spacing as well as fixed {Integer} to {number}
* random() and randomKey() fix
Per Hydra's comment, random() and randomKey() now ensures unique values.
I've also resolved potential issues with requesting a count higher than the collection size. A collection with 10 items will only ever return at most 10 items using the `count` property.
* Can I facepalm harder
Had wrong header comments ^_^
* Fixed for "values/value" and Omited
Also, added "Positive" integer check.
* looks like I "omitted" a change, there.
* Update Collection.js
* Update Collection.js
* Update Collection.js
2017-06-07 18:52:41 -04:00
FireController1847
1e47cfdd5d
Add denied/allowed permissions to PermissionOverwrites ( #1562 )
...
* Add denied/allowed permissions to PermissionOverwrites
* Remove one accidental trailing space.
* Change to _denied/_allowed & denied/allowed
This could possible break if people use deny/allow, I assume, but that's okay.
* Update PermissionOverwrites.js
* Update PermissionOverwrites.js
2017-06-07 23:47:45 +02:00
SpaceEEC
577ab37a2b
make User#displayAvatarURL a method and make it and avatarURL accept an options object ( #1569 )
...
* make User#displayAvatarURL a method
* make avatarURL and displayAvatarURL accept an object as options
2017-06-07 23:47:17 +02:00
aemino
4e79a885b8
Remove unused VoiceBroadcast#guaranteeOpusEngine ( fixes #1556 ) ( #1563 )
2017-06-05 06:52:31 +02:00
Schuyler Cebulskie
28dc3e6a2e
Utilise Object.values for Permissions.ALL
2017-06-02 00:36:34 -04:00
Gus Caplan
a2520efa1a
Use node 8 error code ( #1557 )
2017-06-01 21:14:42 +02:00
Gus Caplan
63f5652ac2
object.entries ( #1549 )
...
* Update DiscordAPIError.js
* Update ClientUserSettings.js
2017-06-01 10:38:34 +02:00
aemino
c4a7ce12e6
Opus engine fetching: don't ignore non-missing errors ( #1555 )
...
* Opus engine fetching: don't ignore non-missing errors
* typo fix
2017-06-01 10:29:55 +02:00
Marko Kajzer
c84529c102
Fixes #1548 ( #1551 )
...
* Added possibility to remove avatar
* Changed as requested
* Removed extra blank line
2017-06-01 06:06:46 +02:00
Tyler
7896081966
Fix <Role>.editable ( #1547 )
2017-05-30 15:36:04 +02:00
Gus Caplan
68c25fef28
Update Guild.js ( #1545 )
2017-05-30 15:34:06 +02:00
Amish Shah
6cc74d22ff
fml
2017-05-30 12:22:40 +01:00
Amish Shah
8f63368696
Correct documentation for VoiceConnection (see #1536 )
2017-05-30 12:21:37 +01:00
Snazzah
29ead897d6
Add MEMBER_ROLE_UPDATE to returning 'UPDATE' array ( #1538 ) ( #1542 )
2017-05-29 23:53:23 +02:00
Drahcirius
20a9e4a0f8
.send() not working on members ( #1539 )
2017-05-29 15:19:42 +02:00
Gus Caplan
1aa2293ebf
add nsfw option to search ( #1534 )
...
* Update Search.js
* Update TextBasedChannel.js
* Update Search.js
2017-05-29 15:19:31 +02:00
PhoenixShay
22e8237bf1
Fix Util.js : fetchRecommendedShards() ( #1532 )
...
* Fix Util.js : fetchRecommendedShards()
I'm not sure who thought this was a good idea, but by removing gateway, it broke fetchRecommendedShards() in Util.js as it uses ${Constants.Endpoints.gateway.bot}.
* Update Constants.js
* Update Constants.js
* Update Util.js
* Update Constants.js
2017-05-28 22:54:56 +02:00
Drahcirius
555317043e
Message embeds ( #1529 )
...
* wowe
* fix sending
* Update MessageEmbed.js
* lel
* patched some fields for message embed and transforms edits as well
* webhook embeds transform
* apply transform to webhook embeds, and changed references
* Update MessageEmbed.js
* Update ClientDataResolver.js
* updated embeds params and use new util resolvers
* did not mean to add this back
* use master version of ClientDataResolver
* transform no longer needed
2017-05-28 03:34:30 +02:00
SpaceEEC
afe0bd8bc4
User#defaultAvatarURL should use CDN ( #1531 )
2017-05-27 22:04:19 +02:00
Amish Shah
ee679c7320
Fix #1528
2017-05-27 19:19:35 +01:00
Drahcirius
4292134647
Refactored static resolvers to Util ( #1517 )
...
* ready event will now throw errors properly
* ws login rejection fix
* moved static resolves to util
2017-05-23 12:18:18 +02:00
Crawl
05a9f7e72f
Remove duplicate resolveString call
2017-05-22 01:04:27 +02:00
bdistin
75eb0bae58
Add resolve content back into send ( #1516 )
...
so arrays are joined again, instead of sent as one new message per element
2017-05-22 01:02:08 +02:00
Gus Caplan
694f8278f1
make fetching members way better ( #1124 )
...
* make fetching members way better
* fix up fetching edge cases yet again
* stop making useless collections
* Update Guild.js
* Update Guild.js
* consistency?
* Update GuildMembersChunk.js
* Update Guild.js
* Update Guild.js
* Open editor to fix issues instead of GH: check
2017-05-21 22:09:37 +02:00
SpaceEEC
fce15ba33c
Fix for bulkDelete, acknowledge, createInvite and remove some redundant stuff ( #1515 )
2017-05-21 22:04:57 +02:00
Gus Caplan
a0df2c5fa4
they can be more than just string/num/bool ( #1448 )
2017-05-21 21:24:36 +02:00
bdistin
ec5da9e6ad
Fix trying to use this.client, when this IS client, and this.client i… ( #1514 )
2017-05-21 21:12:49 +02:00
vzwGrey
874e94992b
Fix reaction collector example ( #1513 )
2017-05-21 18:56:17 +02:00
Gus Caplan
0baa59b679
Internal API Request Rewrite ( #1490 )
...
* start rewrite
* converted guilds
* more changes
* convert GuildMember
* convert User and remove friend methods which kill people
* convert more stuff
* even more stuff
* make things nicer
* speed and fixes and stuff
* almost finished
* fix
* Update Client.js
* uwu
* Update RESTMethods.js
* message editing
* fix router
* fix issue with references
* message delete reason
* move message sending
* fix dm
* message splitting
* NO MORE REST METHODS
* Update Client.js
* Update WebhookClient.js
* remove all those endpoints from the constants
* Update ClientUser.js
* Update ClientUser.js
* fixes
* Update ClientUser.js
* complaiancy
* all sort of fixes
* merge master (#1 )
* Fix Permissions now that member is deprecated (#1491 )
* removing more deprecation leftovers (#1492 )
* Fix MessageCollectors
* Fix awaitMessages (#1493 )
* Fix MessageCollector#cleanup
* Fix MessageCollector#postCheck
* Add max option back for safety
* Update Invite.js (#1496 )
* guild setPosition missing docs (#1498 )
* missing docs
* update return docs
* indent
* switched .invites for the apirouter and invite.js
* make multiple options an object
* Update ClientUser.js
* fix nicks
* Update WebhookClient.js
2017-05-21 07:04:19 +02:00
Gus Caplan
7934788c10
you can't mutate a socket event in some browsers (webpack fix) ( #1512 )
2017-05-21 05:19:53 +02:00
Crawl
79253544ea
Relink permission#FLAGS on docs
2017-05-20 21:04:31 +02:00
Crawl
284bec80d4
Fix MessageCollectorOptions docs
2017-05-20 00:03:51 +02:00
bdistin
4aa734b9ef
guild setPosition missing docs ( #1498 )
...
* missing docs
* update return docs
2017-05-16 16:11:11 +02:00
Gus Caplan
3fa87de594
Update Invite.js ( #1496 )
2017-05-16 15:25:42 +02:00
Crawl
4955b1ce5f
Add max option back for safety
2017-05-16 04:58:13 +02:00
Crawl
8beefe66d5
Fix MessageCollector#postCheck
2017-05-16 04:47:53 +02:00
Crawl
20a267c12f
Fix MessageCollector#cleanup
2017-05-15 01:33:10 +02:00
Daniel Odendahl
88444cdd26
Fix awaitMessages ( #1493 )
2017-05-15 01:04:57 +02:00
Crawl
a579967eb9
Fix MessageCollectors
2017-05-15 00:48:35 +02:00
SpaceEEC
37a3a6baf9
removing more deprecation leftovers ( #1492 )
2017-05-14 23:44:39 +02:00
bdistin
25096047f1
Fix Permissions now that member is deprecated ( #1491 )
2017-05-14 22:40:06 +02:00
Crawl
ca926ee404
Remove all deprecated methods / props
2017-05-14 20:15:55 +02:00
Gus Caplan
4422f2aa8a
fix infinte loop issue ( #1488 )
2017-05-14 19:33:04 +02:00
Gus Caplan
6ac2252794
make default avatar resolving better ( #1484 )
...
* Update Constants.js
* Update User.js
* Update Constants.js
* Update Constants.js
2017-05-13 17:41:32 +02:00
SpaceEEC
ff3e602134
Failing to resolve a role should reject and not throw an error ( #1483 )
2017-05-12 15:30:46 +02:00
aemino
ff82297073
GuildMember#setVoiceChannel fix ( #1482 )
...
Looks like someone forgot to remove the full channel object from the PATCH payload.
2017-05-12 06:41:40 +02:00
Drahcirius
d11a658f40
invalid token errors not rejected properly ( #1478 )
...
* ready event will now throw errors properly
* ws login rejection fix
2017-05-10 11:14:39 -04:00
meew0
83f2c62c3f
Fix the mention example in the USERS_PATTERN doc comment
...
Previously it was a channel mention. Thanks @Hackzzila.
2017-05-10 13:11:21 +02:00
SpaceEEC
f95f18b586
Handing promise rejections from GuildAuditLogs#build to the user ( #1474 )
...
* handing guildauditlog's promise rejections to the user
* Returning a new Promise to resolve a Promise.all is unnecessary.
Also for the docs, it returns a Promise<GuildauditLogs>, not GuildAuditLogs directly.
* totally did not removed that line
2017-05-09 00:19:24 +02:00
1Computer1
6566c0d3c5
Deprecate aliases ( #1469 )
2017-05-06 01:22:15 +02:00
SpaceEEC
5bfc688bb0
Using a traditional for loop rather than a for in loop for options.files ( #1461 )
2017-05-06 01:09:01 +02:00
SpaceEEC
e66fa145d2
fix fetchMentions' auth header, options and data mapping ( #1457 )
...
* fix fetchMentions' auth header, options and data mapping
* vscode strikes again
* switched to Util.mergeDefault
* vscode
* removed duplicated optionals and switched to instanceof
2017-05-06 01:04:12 +02:00
SpaceEEC
d9e5bdea19
added Invite#presenceCount and Invite#memberCount ( #1460 )
...
* added Invite#online and Invite#memberCount
* requested change
2017-05-05 23:24:02 +02:00
SpaceEEC
a685d24504
using correct properties for invites ( #1467 )
2017-05-05 23:19:07 +02:00
SpaceEEC
a4e5713790
readded docs for Client#error and Client#ready ( #1466 )
2017-05-05 20:15:06 +02:00
SpaceEEC
128b4ee3e8
update GuildAuditLogs for MESSAGE_DELETE and fixed extras ( #1464 )
...
* update GuildAuditLogs for MESSAGE_DELETE and fixed extras
* correct oder of targets
2017-05-05 19:44:54 +02:00
SpaceEEC
e6437388cf
Endpoints.Guild(...).Emoji(...) should not use CDN ( #1462 )
2017-05-05 02:22:55 +02:00
Gus Caplan
caf96339e0
Update GuildAuditLogs.js ( #1456 )
2017-05-04 00:50:08 +02:00
Anxeal
ac5d4d1050
Fix typo in RESTMethods.js ( #1455 )
...
Mentions should be written with a capital M
2017-05-03 20:35:24 +01:00
Anxeal
3d92c6d316
Fix typo in RESTMethods.js ( #1454 )
...
fetchMeMentions -> fetchMentions 🤔
2017-05-03 19:45:51 +01:00
SpaceEEC
07623d49e2
Fix for sending files with Webhook class ( #1449 )
2017-05-02 06:58:42 +01:00
Amish Shah
a7c902c6cf
New is also optional
2017-05-01 22:11:04 +01:00
Amish Shah
b7a81ed7e1
watch me, gus
2017-05-01 22:07:20 +01:00
Amish Shah
7da53af0c3
Improve GuildAuditLogs documentation by creating an AuditLogChange typedef
2017-05-01 21:08:15 +01:00
Cody A. Taylor
e124ada962
Document flattenErrors keys param ( #1447 )
...
* Document flattenErrors keys param.
* Remove parens.
* Capitalise a letter
2017-05-01 20:49:45 +01:00
Gus Caplan
35ef9cd33d
Add Guild#nameAcronym and make avatar/iconURLs into functions ( #1144 )
...
* Guild#iconURL(format, size);
* OAuth2Application#iconURL(format, size);
* User#iconURL(format, size);
2017-05-01 20:37:00 +01:00
Gus Caplan
3bab4ec9fd
Add time methods to Audit Log entries ( #1443 )
...
* aaaaa
* Update GuildAuditLogs.js
2017-05-01 18:05:15 +01:00
aemino
2bf8a36077
Allow await endpoint stage to not error ( #1444 )
2017-05-01 18:01:28 +01:00
Amish Shah
c48f042785
silly hydar
2017-05-01 15:42:47 +01:00
Amish Shah
b8018d4b6d
Reconnect on 1000 if client didn't close
2017-05-01 15:32:40 +01:00
Amish Shah
6e4b744d03
Export ClientOAuth2Application
2017-05-01 15:27:44 +01:00
Amish Shah
135d9e3ea0
Expose GuildAuditLogs
2017-05-01 15:25:21 +01:00
Amish Shah
51a2e465bd
Let client know who closed the WebSocket
2017-05-01 15:24:02 +01:00
Amish Shah
2ace21c412
backwards compat docs
2017-05-01 15:10:11 +01:00
Amish Shah
140839128a
Fix ban delete days
2017-05-01 15:07:02 +01:00
Amish Shah
0f4983852e
Fix ban message delete days
2017-05-01 14:57:27 +01:00
Amish Shah
db45d99d0c
More deprecated stuff
2017-05-01 11:28:48 +01:00
Amish Shah
8bab9fb122
Add VIEW_AUDIT_LOG to Permissions docs
2017-05-01 11:15:09 +01:00
Isabella
a02e10926d
Stop using deprecated methods within discord.js ( #1441 )
...
* fix deprecation stuff
* fixed a check
2017-05-01 10:14:26 +01:00
Drahcirius
166161d6d3
ready event will now throw errors properly ( #1440 )
2017-05-01 08:43:35 +01:00
Amish Shah
892ba67d71
Emit packet handling errors to the error event and not the debug event
2017-05-01 07:56:13 +01:00
Crawl
c3be798663
Update GuildAuditLogs.js
2017-05-01 01:03:12 +02:00
Gus Caplan
7779069e32
add audit logs "extras" ( #1435 )
...
* add audit logs "extras"
* whoops
* Update GuildAuditLogs.js
2017-04-30 23:57:42 +01:00
Gus Caplan
1ddae43fed
Add class doc blocks to Audit Logs ( #1438 )
2017-04-30 23:57:06 +01:00
SpaceEEC
c5efa985fc
Readding Client#disconnect and docs for Client#reconnecting ( #1437 )
...
* readded docs for client#reconnecting and client#disconnect
* moved disconnect event emitting and clarified emitting reason
2017-05-01 00:16:02 +02:00
Amish Shah
0754ddbc34
Reset sequence when sessions are invalidated
2017-04-30 22:26:44 +01:00
Gus Caplan
37b1f38ebe
Make audit log entries a collection ( #1436 )
2017-04-30 21:25:22 +01:00
Amish Shah
c2566d230c
Wait undo that
2017-04-30 21:04:39 +01:00
Amish Shah
474a954938
Force deaf/mute properties to be booleans even when null data is received
2017-04-30 21:04:11 +01:00
Amish Shah
e460e5e853
Fix some stuff
2017-04-30 21:01:04 +01:00
Crawl
457b9600f2
Docs consistency plz
2017-04-30 13:16:19 +02:00
Crawl
3cb4aac65a
Remove unused util
2017-04-30 13:03:51 +02:00
Amish Shah
edf1a3e7b4
Undeprecate uws and fix support for it
2017-04-30 11:56:24 +01:00
Amish Shah
f20f49388d
Simplify data unpack logic
2017-04-30 11:40:16 +01:00
Amish Shah
007b1226c9
Rudimentary support for uws while it is deprecated
2017-04-30 11:36:20 +01:00
Amish Shah
8e5c600227
Make OAuth2Application backwards compatible again
2017-04-30 11:21:48 +01:00
Amish Shah
dd110f4824
Add example for creating VoiceBroadcasts
2017-04-30 11:04:41 +01:00
Amish Shah
81b176cfea
BaseOpusEngine should be private
2017-04-30 11:01:26 +01:00
aemino
5cad25ea69
Add Guild#me ( #1384 )
...
* Add Guild#me
(also did minor docs cleanup)
* Don't use Guild#member as there's nothing to resolve
* Update ClientDataResolver.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
2017-04-30 04:30:59 -04:00
Pg Biel
9a5de25d79
Emoji convenience methods ( #1378 )
...
* make branch
* stuff
* Consistency & remove role(s)
* kill me
* Doc changes
Requested by Crawl
* forgot 1
2017-04-30 04:51:15 +02:00
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
Schuyler Cebulskie
3f8c0a4d11
Move things
2017-04-29 20:56:40 -04:00
Schuyler Cebulskie
e2c8ba5be0
Allow MessageMentions#channels to function in DMs
2017-04-29 20:18:23 -04:00
Schuyler Cebulskie
aa35e21b84
Revert "Make MessageMentions#channels return an empty collection in DMs ( #1430 )"
...
This reverts commit 88aa947376 .
2017-04-29 20:00:36 -04:00
Gus Caplan
6f96cf7325
Use Target variables for consistency ( #1431 )
2017-04-30 00:36:26 +01:00
Amish Shah
ee37d859a4
dumb ass bug fix
2017-04-29 22:47:06 +01:00
Amish Shah
1a69331f0c
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2017-04-29 21:09:56 +01:00
Amish Shah
c40252381b
Deprecate all the things
2017-04-29 21:09:53 +01:00
Gus Caplan
4127cf6e40
Experimental support for Audit Logs ( #1403 )
...
* start audit logs
* make better var types so gawdl3y doesn't shit on this
* add constructor stuff
* make more changes
* add entry creation
* add methods
* make it all work hopefully
* aaa
* aaaa
* i wish i could test this locally
* fix users, guild when i feel like it
* make guild prop non-enumerable
* make better types
* change nouns
* e
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* eek
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* friggin trailing spaces
* Update GuildAuditLogs.js
* docs!
* Update GuildAuditLogs.js
* reason stuff
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* support before/after for pagination
* Update Guild.js
* Update GuildAuditLogs.js
* mfw using github web editor
* fix build
* Update Guild.js
* amazing cache fuckery shit evil
* cool stuff
* make building audit logs nicer
* ban endpoint stuff
* dox
* <.<
2017-04-29 20:34:57 +01:00
Amish Shah
b0a3528411
sorry gus i borked
2017-04-29 20:00:05 +01:00
Amish Shah
5b2ca326d4
ESLint pls >.>
2017-04-29 18:07:48 +01:00
Amish Shah
f7d65991d5
Minor refactor of Actions
2017-04-29 17:56:36 +01:00
Amish Shah
dd8f77fcf0
Stop the EventEmitter debug warnings when fetching lots of guilds before ready
2017-04-29 17:46:36 +01:00
Amish Shah
584961b04b
Debug resume from connection not Client
2017-04-29 15:58:12 +01:00
Amish Shah
2e33bf583e
Try to fix StreamDispatchers ( #1387 )
2017-04-29 15:12:34 +01:00
SpaceEEC
88aa947376
Make MessageMentions#channels return an empty collection in DMs ( #1430 )
...
* Make MessageMentions#channels return an empty collection in DMs
* reduce code duplication and corrected docstring
2017-04-29 14:33:18 +01:00
stupid cat
d6b7d31047
Better ClientUser#setStatus for self bots ( #1428 )
...
* better setstatus for selfbots
* make both calls
* must return
* use setpresence, set invisible
2017-04-29 14:31:32 +01:00
Will Nelson
13672cc637
Export ReactionCollector and Collector ( #1426 )
2017-04-29 14:27:39 +01:00
SpaceEEC
956372731f
Using ws.connection.status rather than undefined ws.status ( #1429 )
2017-04-28 21:27:30 +02:00
Drahcirius
9ee695a291
incorrect variable name convention ( #1427 )
...
I'm not pr farming, I swear.
Gus told me to fix it.
2017-04-28 19:46:24 +02:00
Will Nelson
35c4c552f4
[wip] Fix collector documentation (again) ( #1416 )
...
* remove private on abstract methods, fix timeout type
* make client readonly, add documentation to abstract methods
* document implemented collector methods
2017-04-28 19:45:46 +02:00
Drahcirius
89745fe132
emojis should use cdn endpoint ( #1425 )
2017-04-28 18:47:18 +02:00
Drahcirius
2accb7b6fd
small typo fix in emoji id endpoint ( #1424 )
2017-04-28 18:11:12 +02:00
Amish Shah
195fcfa15c
Rewrite WebSocket internals ( #1410 )
...
* Start rewriting Manager and Connection
* more stuff
* stuff
* Fix ready bug
* some stuff i forgot
* fix some stuff
* add stupid heartbeat ack like seriously who cares
* woo!
* fix a bug
* rate limit the dumb websocket
* stuff
* hdocs
* Docs
* Remove ClientManager#setupKeepAlive as it is now redundant
* Change Client._pingTimestamp to a getter that fetches the timestamp from the WebSocketConnection
* are you happy now eslint smh
* make gus happy
* Add CloseEvent external doc
* Make sure to emit 'reconnecting' when actually reconnecting
* ffs
* Fix RESUME logic
* Add heartbeat ack debug messages, including latency data
* Dumb stuff for Gus
* thx eslint
* more dumb stuff
* more dumb crap smh gus i h8 u
* moar messages
* fix for using wrong status, causing certain events not to be fired (#1422 )
2017-04-28 16:13:06 +01:00
SpaceEEC
95bcac9d9b
Throwing 'Message not found' error when fetching from empty channel or without read history permission. ( #1394 )
2017-04-28 17:02:52 +02:00
Gus Caplan
1601ad14e3
i hate my life ( #1420 )
2017-04-27 00:21:03 +02:00
Gus Caplan
5ac22691d2
Add TextBasedChannel#nsfw (excluding User and GuildMember) ( #1419 )
2017-04-26 23:01:27 +01:00
bdistin
298ee4e79f
Throw an error if you try to initiate a new SnowflakeUtil class instance ( #1413 )
2017-04-25 23:29:30 +02:00
SpaceEEC
909b825c94
Fixed acknowledging of channels ( #1411 )
...
* Fixed acknowledging of channels
* using channel#lastMessageID and resolve when it's not present
2017-04-25 23:29:08 +02:00
Gus Caplan
c670209021
allow search('string here') ( #1408 )
2017-04-24 16:43:30 +02:00
Crawl
53eda09f72
Improve docs
2017-04-24 16:29:29 +02:00
SpaceEEC
401822a094
Made search argument optional, added useronly warning and fixed endpoint ( #1407 )
2017-04-24 14:31:39 +02:00