Kyra
0f63c50c06
fix: Util.basename being unreliable ( #2679 )
...
* fix: Util.basename being unreliable
new URL for WHATWG parsing was not chosen because it only works for URLs and threw in local pathes, path.basename is unreliable (according to the devs' note), and path.parse seems to work well.
* docs: Update Util.basename's description
2018-08-10 11:23:22 +02:00
Isabella
f3d7f7c3bd
refactor: move Message#cleanContent function to Util ( #2703 )
...
* refactor: move Message#cleanContent function to Util
* suggested changes
2018-08-09 14:27:05 +02:00
Lewdcario
41a1dee533
fix(Util): circular reference
2018-06-29 13:02:38 -05:00
Will Nelson
5e011dbc11
switch to node-fetch ( #2587 )
...
* switch to node-fetch
* remove useless var declaration
* remove method uppercasing
* rework concurrency
* Revert "rework concurrency"
This reverts commit ef6aa2697e .
* fix headers
2018-06-19 20:10:55 +02:00
Kyra
d02c303afd
fix(Guild): equals method modifying features array of guild ( #2544 )
...
* Fixed a bug where Guild#equals would cause the given guild to lose its features
* Fix Util.arraysEqual
* Fixed docs for Util.arraysEqual
* Remove Util.arraysEqual
2018-05-29 11:15:19 +02:00
bdistin
25b654d494
consistency is king ( #2554 )
2018-05-18 03:30:19 +02:00
Daniel Odendahl Jr
95b531742a
fix: TypeError in mixin function ( #2506 )
2018-04-24 18:35:07 -05:00
Isabella
8b83553462
refactor: role stores ( #2478 )
...
* refactor: reduced duplication in role stores
* fix docs
* fix: typo
* most of requested changes
* rest of changes
* ACTUAL rest of changes
* docs
* doooocs
* reason
2018-04-24 15:52:00 -05:00
Will Nelson
cf7dcba1a5
Add toJSON methods ( #1859 )
...
* tojson things
* fix client
* ignore private properties
* remove extra property descriptors
* handle primitive flattening
* remove unused import
* add toJSON to collections
* reduce stateful props
* state
* allow custom prop names when flattening
* fix client
* fix build
* fix flatten docs
* remove guild.available, cleanup permissions, remove arbitrary id reduction
* fix util import
* add valueOf as needed, update member props
* fix incorrect merge
* update permissionoverwrites and permissions
remove serialization of permissions in PermissionOverwrites#toJSON.
change Permissions#toJSON to serialize permissions, by default excluding
admin checks.
* change Permissions#toJSON to return the primitive
* Permissions#toJSON explicitly return bitfield
2018-03-01 23:00:21 -06:00
rei2hu
35babc706d
Fix: discord sort method ( #2355 )
2018-02-23 21:18:42 -06:00
Ecstabis
3a3ca96b0d
Added 2 basic role colors PINKISH_PURPLE and DARK_PINKISH_PURPLE ( #2303 )
...
* Added 2 basic role colors PINKISH_PURPLE and DARK_PINKISH_PURPLE
* Added documentation for added Colors PINKISH_PURPLE and DARK_PINKISH_PURPLE
* fix colour names
* docs
2018-02-20 16:51:03 -06:00
Lewdcario
d46eec4da4
fix(resolveColor): not interpreting DEFAULT correctly
2018-01-28 22:34:50 -06:00
Alex
e58ff642f5
Make Util#splitMessage handle edge cases properly ( #2212 )
...
* Make Util#splitMessage handle edge cases properly
* Restart Travis
* Set maxLength to 2000 + small tweak
2018-01-24 23:41:50 -06:00
Faith
58d85282b4
Fix Destructuring Errors in Util ( #2171 )
...
* Fix Destructuring
* Fix another one
2018-01-24 17:37:41 -06:00
SpaceEEC
2318812f7f
fix: allow the Util#parseEmoji regex to match emoji identifier ( #2229 )
2018-01-04 20:29:32 +01:00
Alex
780a311c0a
Minor refactor to Util methods ( #2213 )
...
* Minor refactor to Util methods
* Fix derp
2018-01-04 01:18:56 +01:00
Gus Caplan
84e4dd6a99
animated emojis ( #2182 )
2017-12-31 20:20:52 +01:00
Schuyler Cebulskie
26b28813a8
Use a custom promisified setTimeout
2017-11-19 13:47:04 -05:00
Schuyler Cebulskie
f4ac06024e
Improve ColorResolvable docs
2017-11-18 23:34:34 -05:00
Schuyler Cebulskie
b859501b6f
Document and clean up some garbage
2017-11-18 20:30:13 -05:00
Drahcirius
8237bc054c
So long, long ( #1994 )
...
* refactor: remove long dep
* fix linter issue
* remove file extensions
* optimize methods
2017-11-17 14:37:07 +01:00
Robin B
97823bc376
Various documentation adjustments ( #2001 )
...
* docs(various): Add "at" to createdAt description
* docs(Client): Adjust to fit with guilds property
* docs(various): Adjust phrasing & fix typos
* docs(various): Clarifications
* docs(Permissions): fix numerus
* docs(DataStore): capitalize DataStore
* docs(various): Formatting changes
* docs(Presence): Expand RichPresenceAssets docs
* Add space
2017-10-07 01:56:17 +02:00
Frangu Vlad
f178f9ba6c
fix(setPosition): rawPosition never getting updated when setPosition was called ( #2006 )
...
* Fix setPosition issue
The rawPositions were never updated from using setPosition, now they are.
* Fix bubbling issue
Also, yes. It took me 8 hours to get back home. Deal with it :D
* Watch your copy paste
2017-10-07 01:55:30 +02:00
Gus Caplan
27ccad1f1c
tinify webpacks ( #1975 )
...
* tinify webpack
* meme
* fix long version
* more changes
* even smoler
* fix up logic
* fix build
* undo changes to user agent manager because its not webpack'd anymore
* the heck
* fix stupid
* clean up browser rules
* typo
2017-09-26 07:18:12 +02:00
SpaceEEC
ec4c98704f
refactor: make use of destructuring for Constants ( #1942 )
2017-09-16 20:31:36 +02:00
Gus Caplan
f4c2d6dfa2
fix a thing ( #1921 )
2017-09-09 22:55:26 +02:00
Gus Caplan
2ffe3048ba
clean up positions ( #1919 )
...
* clean up positions
* perf i guess
2017-09-09 22:40:32 +02:00
iCrawl
2aa2f73c74
Docs cleanup
2017-08-17 20:04:01 +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
FireController1847
e50bf2cdad
Fix Recommended Shards ( #1672 )
2017-07-10 10:37:31 +01:00
Gus Caplan
f8a1f2c23b
fix this again ( #1655 )
2017-07-04 03:58:54 +02:00
Gus Caplan
e57bfc9313
undefined check to merge default ( #1654 )
2017-07-04 03:48:20 +02: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
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
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
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
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
SpaceEEC
d0c2b84659
Fixed Util.arraysEqual, made it better and updated its docs ( #1374 )
...
* commit
* improved docs
2017-04-12 19:37: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
Crawl
4be08406e6
Fix travis build error
2017-04-03 02:06:08 +02:00
Crawl
047cd2da5c
Fix fetchRecommendedShards
2017-04-03 01:51:15 +02:00
Gus Caplan
cb3f6d9646
http rewrite (actually works this time!!1!) ( #1257 )
...
* rewrite http
* browser fun
* all the mimes dammit
* i need a newline
* whoops
* forgot about this
* use promises and HTTPRequest.method
* fluent
* move httpclient to external module
* branding
* middleware
* revert middleware
2017-04-01 09:04:01 +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
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00