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
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
Frangu Vlad
0cd4a92fb8
docs: Fixed some missing docstrings or incorrect return types ( #2093 )
...
* Fix some missing doc strings
Mainly just readonly tags
* Return an error when guild#allowDMs is ran from a bot account, and fix some return types
* WebhookClient implements Webhook, doesn't extend it
* Fix Client#rateLimit docs not showing what it returns
Cause I wanted to handle this event only to see no return props 🤔
* Actually make Client#rateLimit show the right info
Its an object with all the info
2017-11-17 14:20:57 +01:00
Gus Caplan
bc30fdd867
Fix Avatar URL generation bug ( #2063 )
2017-10-26 20:07:27 +01:00
Gus Caplan
0589b7d7f1
zlib stream compression ( #2028 )
2017-10-25 17:30:03 +01:00
Gus Caplan
ee1d4c53f2
Add rateLimit event ( #2019 )
...
* add ratelimited event
* add some useful props
* death
* more death
* Update tester1000.js
* Update RequestHandler.js
2017-10-24 21:07:21 +01:00
Gus Caplan
296046dbc6
remove ua manager ( #2015 )
2017-10-19 07:11:07 +02: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