Amish Shah
1f7c1ddaa2
voice: start update to v4, fix heartbeats
2018-06-22 17:42:04 +01: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
Kyra
30c7d6d1b1
feat(Guild#defaultMessageNotifications) ( #2538 )
...
* feat(Guild#defaultMessageNotifications)
* boolean -> DefaultMessageNotifications
* Space's requested change
2018-05-28 17:44:04 -05:00
SpaceEEC
56a9d1ba3c
docs(Collection): make findKey method show up in docs
...
Solved by moving the eslint-enable line below the method header.
2018-05-19 08:50:39 +02:00
bdistin
25b654d494
consistency is king ( #2554 )
2018-05-18 03:30:19 +02:00
1Computer1
a732402c95
refactor: remove unnecessary Collection methods and add Collection#partition ( #2511 )
...
* Rework collection
* Fix docs
* Remove (prop, value) behavior
* Add back thisArg
* Put examples on same line
* Revert map to return array
* Make examples less specific
* Add thisArg to sweep and partition
2018-05-14 01:15:43 -05:00
bdistin
7a3a4d1388
feat: add Collection#sweep() ( #2528 )
2018-05-04 02:27:59 -05:00
1Computer1
9f918199d2
feat: add Collection#tap ( #2507 )
...
* Add Collection#inspect
* No u
* Rename to tap
* Rename variable
* Do it here too
2018-05-04 02:08:32 -05:00
SpaceEEC
ddab8096cf
feat(DataResolver): account for discord.gg/invite/<code> invites
2018-05-03 21:09:55 +02:00
bdistin
17d2c2efb8
docs(Collection): fix spelling of 'behavior' ( #2529 )
2018-05-03 08:00:56 +02:00
Amish Shah
b5f37728a7
feature: allow sweeping of inactive request buckets
2018-05-02 17:57:48 +01: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
SpaceEEC
f6216f3905
feat(SnowflakeUtil): allow snowflakes to be generated dynamically ( #2459 )
2018-04-17 09:00:18 -05:00
Pascal
85413481ed
fix(DataResolver): always resolve with buffer when resolving urls
...
Fixes : #2379
2018-03-06 21:48:34 +01: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
Will Nelson
2a9fdef9e5
add valueOf method to permissions ( #2363 )
2018-02-28 16:48:06 +01: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
Kyra
a8172951d3
perf(Collection): Performance improvements ( #2342 )
...
* Update Collection.js
* ESLint
2018-02-16 10:19:30 +01:00
Sanctuary
87e5a45659
feat(ClientOptions): add support for setting an initial presence ( #2320 )
...
* docs/feat(WebsocketOptions): Parse ws options presence
Allow the `presence` property in `WebsocketOptions` to be used the same way
as `ClientUser#setPresence`.
* Move presence options to top level
2018-02-04 21:32:45 +01:00
Gus Caplan
bd1bf11ed0
spotify stuff ( #2314 )
2018-02-02 12:45:18 -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
Pascal
07c48a6845
fix: require discordjserror to throw meaningful errors where necessary
2018-01-22 20:23:36 +01:00
Amish Shah
e7375aa0fd
Reimplement broadcast (un)subscribe events
2018-01-19 14:32:51 +00:00
SpaceEEC
aa3407f705
Base Emoji class for ReactionEmoji and renamed GuildEmoji classes ( #2230 )
...
* feat: create base Emoji class for ReactionEmoji and new GuildEmoji
* rename EmojiStore to GuildEmojiStore to account for the new class' name
2018-01-18 02:38:45 -06:00
John Leuenhagen
d5b0cf9ffb
Permissions improvements ( #2126 )
...
* add Permissions.toArray()
* accept Permissions objects to Permissions.missing()
* accept Permissions as parameter to Permissions.has()
* style fixes
* remove redundant line, update JSDoc for Permission.resolve()
* JSDoc, style, and checkAdmin fixes
* add Permissions.resolveToObject()
* accept PermissionResolvable to Permissions.missing()
* remove `resolveToObject`, fix constructor JSDoc
* remove redundant parameter type
* fix `Permissions.missing()`
* fix checkAdmin
* update Permissions.toArray() description
* eliminate ambiguity in Permissions.toArray() description
* add backticks to permission example
* remove irrelevant type in Permission ctor description
* use this.constructor to properly support OOP
* use simplified approach for Permissions.toArray()
* fix return type on Permissions.toArray()
* move `Permissions#toArray` to more suitable position
* bitwise approach to `Permissions#missing`
* allow `Permissions` to be iterated over
* don't checkAdmin on return array
* remove unnecessary conditional
* fix JSDoc indentation
* use simpler & more reliable approach for missing()
* update PermissionResolvable typedef
2018-01-18 02:17:50 -06:00
bdistin
4122db0275
Return undefined from Collection.find() / findKey() ( #2260 )
...
To be compliant with Array.find() / findIndex()
2018-01-16 01:24:19 +01:00
Yukine
352bd13e6f
fix typo in Error constants ( #2243 )
...
* fix typo in Error constants
* another one (#1 )
2018-01-13 12:52:25 +00: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
77fc046550
Merge branch 'custom-structures'
2017-11-29 23:27:43 -05:00
bdistin
dcf48e2225
Fix inconsistency with Channel Creation: CustomStructures ( #2121 )
...
* Fix inconsistancy with Channel Creation
* Because static get is a function, it thinks we are create a new instance based on that function, rather than the returned class...
2017-11-24 22:42:02 -05:00
Schuyler Cebulskie
f3817e328b
JK, back to Structures.extend
2017-11-20 01:37:19 -05:00
Schuyler Cebulskie
cf07b7e342
Re-add docs
2017-11-20 01:13:36 -05:00
Schuyler Cebulskie
1e0ee2f8fa
Replace Structures.extend with set
2017-11-20 01:11:19 -05:00
Schuyler Cebulskie
a2a4c3c196
Fix Presence structure
2017-11-20 00:26:57 -05:00
Schuyler Cebulskie
f004e6ccca
Reimplement Structures.get
2017-11-19 23:00:56 -05:00
Schuyler Cebulskie
6d53d893a8
Make Structures.extend static and tweak error messages
2017-11-19 22:46:38 -05:00
Schuyler Cebulskie
47dc8fd046
Overhaul the way structures are extended
2017-11-19 22:41:45 -05:00
Schuyler Cebulskie
dc379519d3
Fix reaction structure name
2017-11-19 22:30:37 -05:00
Schuyler Cebulskie
0291fe41d8
Fix structure paths
2017-11-19 22:09:43 -05:00
Schuyler Cebulskie
c29804e3f8
i aint do nuffin
2017-11-19 21:19:46 -05:00
Schuyler Cebulskie
cfa512c447
Make structures for data stores extensible
2017-11-19 21:16:14 -05: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