aemino
e29a3ec08b
Handle unexpected disconnects via packets ( #1521 )
2017-07-26 10:10:21 +02:00
aemino
4342ed29a8
Audio bitrate support ( #1439 )
...
* Audio bitrate support
Note: not implemented for VoiceBroadcasts
* Fix default args, auto bitrate
* Late night typos are the best
* Changes bitrate to kbps for VoiceChannel stuff
* Add methods to manipulate bitrate while encoding
2017-07-26 10:06:40 +02:00
Will Nelson
7eb9e65c41
check guild availability when aggregating client emojis ( #1711 )
2017-07-26 10:04:43 +02:00
Gus Caplan
57b6980313
retry on 500 ( #1709 )
2017-07-22 23:21:50 +02:00
Gus Caplan
a2eeafc75d
rewrite ratelimiting and api route builder ( #1667 )
...
* rewrite ratelimiting and api route builder
* more stuff
* let people pass their own handlers
* Update burst.js
* Update RequestHandler.js
* Update burst.js
* Update sequential.js
* Update RequestHandler.js
2017-07-21 02:32:40 +02:00
SpaceEEC
11556c0b3b
Moved all error strings to src/errors/messages and a few other things ( #1695 )
...
* Added missing error messages
As well as `Guild#setRolePosition` and `Guild#setChannelPosition`'s first arg validation
And fixed a typo in `Guild#setChannelPosition`
`roles` -> `channels`
* Reverted collection and Util constructors
* Removed leftover messages
Should have been in the second commit.
* It's a single invalid permission and removed unused flag error
* Fix INVALID_TOKEN -> TOKEN_INVALID as of #1703
2017-07-21 02:27:19 +02:00
Raphael
111fa2da93
Fix typo in client.voiceConnections docs ( #1679 )
...
Fix typo in client.voiceConnections docs
2017-07-11 05:42:14 +02:00
SpaceEEC
c0e9ce2a1d
functions for setTimeout should get the context bound and not applied ( #1673 )
2017-07-10 03:34:54 +02:00
Crawl
0c34f3a313
Update dependencies & make webpack great again
2017-07-05 11:53:53 +02:00
Gus Caplan
e3cd000ec0
update http options to fit discord spec ( #1656 )
...
* Update Constants.js
* Update APIRequest.js
* Update Invite.js
* Update Constants.js
2017-07-05 09:10:06 +01:00
Gus Caplan
2eb3720001
move raw call so that any cache events happen before ( #1653 )
...
* move raw call so that any cache events happen before
* Update WebSocketConnection.js
* Update WebSocketConnection.js
2017-07-04 00:10:28 +02:00
aemino
afcf43aef6
Add VoiceConnection errors ( #1649 )
2017-07-04 00:09:38 +02:00
bdistin
8da557faab
Fix client.fetchApplication ( #1644 )
...
previously it returned: `this.api.oauth2.applications was not a function`, missed fixing with the api router change
2017-07-02 01:33:21 +01:00
aemino
62537b7deb
Ignore setSpeaking requests when VC isn't connected ( #1638 )
2017-07-01 10:14:41 +01:00
Gus Caplan
5ecd5f7d69
REST API speed improvement ( #1577 )
2017-07-01 10:14:17 +01:00
Gavin Wainwright
7b44262346
Destructure certain imports ( #1634 )
2017-06-29 00:43:26 +01:00
Drahcirius
45cc175851
setTimeout should use args ( #1623 )
2017-06-27 20:22:17 +01:00
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
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
66cc5b2b53
URI Encoding for reasons ( #1606 )
2017-06-17 10:47:37 +01: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
aemino
4e79a885b8
Remove unused VoiceBroadcast#guaranteeOpusEngine ( fixes #1556 ) ( #1563 )
2017-06-05 06:52:31 +02: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
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
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
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
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
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
Gus Caplan
4422f2aa8a
fix infinte loop issue ( #1488 )
2017-05-14 19:33:04 +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
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
a4e5713790
readded docs for Client#error and Client#ready ( #1466 )
2017-05-05 20:15:06 +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
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
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
51a2e465bd
Let client know who closed the WebSocket
2017-05-01 15:24:02 +01:00