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
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
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
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
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
e6437388cf
Endpoints.Guild(...).Emoji(...) should not use CDN ( #1462 )
2017-05-05 02:22:55 +02: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
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02: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
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
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
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
SpaceEEC
401822a094
Made search argument optional, added useronly warning and fixed endpoint ( #1407 )
2017-04-24 14:31:39 +02:00
Crawl
6abe014ac3
Change theme prop type
2017-04-23 07:04:44 +02:00
SpaceEEC
6187c17097
readded inviteLink endpoint ( #1369 )
2017-04-11 22:21:28 +02:00
Gus Caplan
8dfc96d460
fix message acking ( #1368 )
2017-04-11 17:54:25 +01:00
Gus Caplan
0a56fa0aae
websocket cleanup ( #1346 )
...
* websocket cleanup
* resume event
* Update Resumed.js
* Update WebSocketManager.js
2017-04-10 20:02:17 +02:00
Gus Caplan
e5293647a3
(╯°□°)╯︵ ┻━┻ ( #1347 )
2017-04-07 12:13:13 +02:00
Crawl
d1d8179460
Revert "add auth session change handling" ( #1342 )
...
* Revert "User settings (#1337 )"
This reverts commit 801633b970 .
* Revert "add auth session change handling (#1339 )"
This reverts commit 5d85de0883 .
2017-04-06 13:50:31 +02:00
Gus Caplan
801633b970
User settings ( #1337 )
...
* user settings bruh
* remove development dump
* emit stuff
* i am so done
* Update ClientUserSettings.js
* modularize
* Update ClientUserSettings.js
* Update Constants.js
* Update ClientUserSettings.js
* Update RESTMethods.js
* Update ClientUserSettings.js
* <.<
2017-04-05 22:03:33 +02:00
Gus Caplan
5d85de0883
add auth session change handling ( #1339 )
...
* add auth session change handling
* eek
2017-04-05 21:52:55 +02:00
SpaceEEC
07740955cf
Fixing stuff, borked by #1323 ( #1326 )
...
* several things
* see my comment
* Fixed missing stuff and returned undefined
2017-04-01 07:29:31 +02:00
Gus Caplan
305a7d14af
whoops ( #1325 )
2017-03-31 23:13:41 +02:00
Gus Caplan
e86ec7de6f
Update Constants.js ( #1324 )
2017-03-31 19:42:16 +02:00
Gus Caplan
1df3b84da6
rewrite endpoints for consistancy and modularity ( #1323 )
...
* rewrite endpoints for consistancy and modularity
* clean up a bit
* add missing endpoint
2017-03-31 18:36:09 +01:00
SpaceEEC
beffcd31cd
fix guildWebhooks endpoint ( #1284 )
2017-03-21 16:31:02 +00:00
Schuyler Cebulskie
136cab240d
Add new ESLint rules
2017-03-17 01:23:39 -04:00
Crawl
4ef0ec491c
Add arrow-parens eslint rule & fix inconsistencies
2017-03-13 15:56:00 +01:00
Schuyler Cebulskie
16fe48d405
Overhaul Permissions utilities (EvaluatedPermissions no more)
2017-03-06 02:22:42 -05:00
Schuyler Cebulskie
a5740e83f4
Change burst mode warning
2017-03-01 04:51:46 -05:00
Amish Shah
70b35c85d6
Merge branch 'indev-prism'
2017-02-23 20:19:26 +00:00
Amish Shah
8a2ec437e5
Merge branch 'master' into indev-prism
2017-02-22 20:37:59 +00:00
Gus Caplan
4c9d8d6cd7
add lots of group dm features ( #1208 )
...
* group dm stuff
* minor doc changes
2017-02-22 20:33:20 +00:00
Programmix
7fd94c29d8
VoiceConnection rework ( #1183 )
...
* VoiceConnection rework
- improves codebase
- removes concept of pending connections
- attempts to fix memory leaks by removing EventEmitter listeners
- makes voice connections keep track of its own channel when it is moved by another user
- allows voice connections to reconnect when Discord falls back to another voice server or a region change occurs
- adds events for some of the aforementioned events
* Removed unused code
* More clean up / bugfixes
* Added typedefs to Status and VoiceStatus constants
2017-02-22 20:13:52 +00:00
Gus Caplan
61e12c637b
Add support for more OAuth features ( #1203 )
2017-02-22 20:09:40 +00:00
Programmix
d09dfa4c37
Capitalize channel type constants ( #1209 )
2017-02-22 20:08:47 +00:00
Gus Caplan
ec1ed15c88
Fix request handling ( #1180 )
...
* clean up ratelimiters, and disable burst until some big questions are handled
* burst mode is a work
* fix burst again
2017-02-11 12:04:24 +00:00
Schuyler Cebulskie
b859ba7639
Increase some documentation detail
2017-02-05 23:00:36 -05:00
Alex
18729b25c7
Add support to edit emojis ( #1142 )
...
* Add support to edit emojis
* Fixes for coding style.
* Add and use guildEmoji constants for updateEmoji
* Just use the Constant
* Fix typo in edit documentation
* Specify property types
* Fix ridiculous typo.
* Update Emoji.js
2017-01-30 22:47:05 -05:00
Gus Caplan
87b600f78f
switch to os shim for safety ( #1136 )
...
* switch to os shim for safety
* Update Client.js
2017-01-26 21:21:43 +00:00
Gus Caplan
3f4cbd07dd
add voice region getting ( #1108 )
...
* add voice region getting
* clean up this mess
* add docstrings
* Update VoiceRegion.js
* Update RESTMethods.js
2017-01-18 19:14:44 -05:00
Gus Caplan
0d4eab8d24
add color resolvable, and color constants from the client ( #1080 )
...
* add color resolvable, and color constants from the client
* fix up docs
* Update ClientDataResolver.js
* add easter eggs
* Update ClientDataResolver.js
* Update RESTMethods.js
2017-01-12 18:43:22 +00:00
Gus Caplan
a3091f5262
Handle 4011 ws event code ( #1083 )
...
* 4011
* Update WebSocketManager.js
* smh gawdl3y
2017-01-11 22:59:09 +00:00
Gus Caplan
beffb390e6
Add search ( #1043 )
...
* add search
* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Amish Shah
b0c2f818a8
Remove cached events
2016-12-26 21:56:04 +00:00
Amish Shah
bf7767fe2c
Rename emoji events
2016-12-26 21:30:27 +00:00