Commit Graph

287 Commits

Author SHA1 Message Date
SpaceEEC
5272cec6c8 feat(Util): add WHITE as color resolvable (#3062) 2019-02-09 23:52:38 +00:00
Kyra
359ddaf1df feat(Constants): add error code 50020 (#2953)
* feat(Constants): Add error code 50020

Which is throw when using the vanity-url endpoint: https://github.com/discordapp/discord-api-docs/pull/748/

* docs: Document the new code
2019-02-06 22:09:00 +01:00
SpaceEEC
c6201ee41b backport(Guild): add fetchVanityCode (#2871) 2018-10-03 17:31:20 -05:00
SpaceEEC
e0f522a745 backport(ClientOptions): add retryLimit (#2869) 2018-10-03 17:20:53 -05:00
Kyra
89986ae293 backport: UNKNOWN_WEBHOOK (#2777) 2018-08-28 10:35:34 -05:00
Kyra
3345c77ce2 backport: GUILD_INTEGRATIONS_UPDATE event (#2794)
* backport: Client#on{guildIntegrationsUpdate,webhookUpdate}

misc: Update Constants.WSEvents and WSEventType

backport: Add guildIntegrationsUpdate event handler

* docs: Updated typings
2018-08-28 10:25:44 -05:00
Kyra
453098117f backport: WEBHOOKS_UPDATE event (#2779) 2018-08-26 11:59:15 -05:00
SpaceEEC
5d889be6db fix(Permissions): Permissions itself is a valid PermissionResolvable
fixes #2753
2018-08-15 13:55:04 +02:00
Lewdcario
6da423fc07 backport: Permissions#toArray 2018-08-08 22:17:08 -05:00
Lewdcario
1e5b5b83c8 backport: GuildChannel#permissionsFor(role) 2018-08-08 22:16:46 -05:00
Lewdcario
c33ab1ea61 backport: add PRIORITY_SPEAKER permission 2018-08-03 19:09:09 -06:00
Isabella
488b1eb4ee backport: Sharding utility methods (#2672) 2018-07-25 12:08:08 -04:00
Lewdcario
524a15df0b backport: Permissions improvements 2018-07-17 21:49:21 -05:00
Lewdcario
0702a0fcda backport: DefaultMessageNotifications 2018-07-17 21:32:24 -05:00
Lewdcario
6de5acbac3 backport: RichPresence 2018-06-09 15:37:01 -05:00
SpaceEEC
f456f4c3c0 feat(Collection): backport partition method
Commit: a732402c95
PR: #2511
2018-05-25 16:49:10 +02:00
SpaceEEC
f921261f3f fix(docs): remove duplicated Collection#findAll docstring
Also added intended @ deprecated decorators
2018-05-25 16:44:49 +02:00
Lewdcario
09ddbcb88a chore: deprecations 2018-05-12 00:40:12 -05:00
Lewdcario
0d90798c6c backport: rateLimit event 2018-05-11 20:55:31 -05:00
1Computer1
de7d90ada3 feat(Collection): add tap method (#2507)
* Add Collection#inspect

* No u

* Rename to tap

* Rename variable

* Do it here too
2018-05-09 16:46:54 +02:00
bdistin
2b6592ed54 feat(Collection): add sweep method (#2528) 2018-05-09 16:42:28 +02:00
SpaceEEC
96b115ef7b feat(ClientDataResolver): add 2 basic role colors
Commit: 3a3ca96b0d
PR: #2303
2018-05-08 22:35:35 +02:00
Will Nelson
2d831269ab feat(Permissions): add valueOf method (#2363) 2018-05-08 22:30:27 +02:00
bdistin
b757f9ef2d docs(Collection): fix spelling of 'behavior' (#2529) 2018-05-08 19:07:49 +02:00
SpaceEEC
d9a091f674 feat(SnowflakeUtil): allow snowflakes to be generated dynamically 2018-04-27 20:34:48 +02:00
Lewdcario
7c0b6173dd fix: Role#setPermissions resolving & docs 2018-04-18 19:57:16 -05:00
Kyra
b7851bad37 perf(Collection): Performance improvements (#2342)
* Update Collection.js

* ESLint
2018-02-21 22:03:40 +01:00
Isabella
f62fa05389 fix(Message#addReaction): incorrect regex (#2247) 2018-01-13 17:22:23 +00:00
Frangu Vlad
0821acfa99 Fix iter issues (#2237) 2018-01-09 21:17:46 +01:00
Isabella
d94ead70f8 fix(avatarURL): gifs not being animated (#2195) 2018-01-05 21:33:50 +00:00
SpaceEEC
659e89e8cd feat: backport animated emojis support (#2217)
Commit: 84e4dd6a99
2018-01-04 01:16:50 +01:00
SpaceEEC
db5bdcd855 feat: backport after and before parameter when fetching a reaction's users (#2218)
Commits:
- f40a5e9f88
- 5cd42695ae
2018-01-04 01:07:14 +01:00
Isabella
cd066849ad feature(ClientUser): deprecate ClientUser#setGame in favour of ClientUser#setActivity (#2127)
* feature(ClientUser): backported ClientUser#setPresence

* fix ternary

* deprecation stuff
2017-11-29 23:29:37 -05:00
Isabella
cce2480bb5 feature(CategoryChannel): backport (#2117)
* feature(CategoryChannel): backport


fix


no

* ????

* bad ternary
2017-11-19 23:19:46 -05:00
SpaceEEC
1fe201ae90 Backporting, doc/bug fixes as well deprecation (#1826)
* Backporting, doc/bug fixes as well deprecation

* Adress issue with not resettable icons/images
2017-08-25 15:14:05 +02:00
Isabella
17d7f5c723 resolveImage backport (#1822)
* add resolveImage

* add groupDMChannel#setIcon + icon getter

* doc fix

* crawl no kill pls

* *whistles*

* channe
2017-08-23 05:29:22 +02:00
SpaceEEC
f7664b01a2 Backports (#1813)
* Backported OAuth2Application 201ecd25a2

* Backported retry on 500 57b6980313

* Backported b8034525e3 and fa5c4efa2b
2017-08-21 22:25:21 +02:00
Crawl
2478092d44 More docs cleanup 2017-08-20 22:15:51 +02:00
Crawl
c7d1507e19 Docs cleanup 2017-08-20 22:08:37 +02:00
Évelyne Lachance
d513c4bbb9 Add count optional argument to Collection methods (#1552)
* Add `count` optional argument to Collection methods

[NON-BREAKING CHANGE]
An optional `count` argument is added to the following methods:
- random() and randomKey()
- first() and firstKey()
- last() and lastKey()

If `count` is used, the method returns an array instead of only the value. Performance impact non-existent for existing code. Performance for returning an array has been measured and this is the fastest I could find (array[i] = value is faster than array.push()).

* Update Collection.js

Fixed spacing/line length errors according to suggestions by codacy/pr

* Fixed docs

Added proper `@returns {*|Array}` as the methods might return either. Also added params where missing (whoops)

* Further doc fixes

Per Crawl's comments, fixed (i + 1) spacing as well as fixed {Integer} to {number}

* random() and randomKey() fix

Per Hydra's comment, random() and randomKey() now ensures unique values.
I've also resolved potential issues with requesting a count higher than the collection size. A collection with 10 items will only ever return at most 10 items using the `count` property.

* Can I facepalm harder

Had wrong header comments ^_^

* Fixed for "values/value" and Omited

Also, added "Positive" integer check.

* looks like I "omitted" a change, there.

* Update Collection.js

* Update Collection.js

* Update Collection.js
2017-08-12 11:18:25 +02:00
Crawl
26e5ef3205 Update deps and fix webpack 2017-07-16 14:34:23 +02:00
aemino
b9434ed112 Expose DiscordAPIError and API error constants (#1641)
* Expose DiscordAPIError

* Expose API error constants

* Add typedef for APIError

* Integligently forgot to save file
2017-07-16 14:06:26 +02:00
Crawl
a8d34e340b Relink permission#FLAGS on docs 2017-05-20 21:05:45 +02:00
SpaceEEC
ee622f7d9f added Invite#presenceCount and Invite#memberCount (#1460)
* added Invite#online and Invite#memberCount

* requested change
2017-05-05 23:24:16 +02:00
Crawl
41e0be1db3 Endpoints.Guild(...).Emoji(...) should not use CDN (#1462) 2017-05-05 02:23:25 +02:00
Amish Shah
8bab9fb122 Add VIEW_AUDIT_LOG to Permissions docs 2017-05-01 11:15:09 +01:00
Crawl
ac92d2cecc Improve docs a bit 2017-04-30 04:30:44 +02:00
Amish Shah
1a69331f0c Merge branch 'master' of https://github.com/hydrabolt/discord.js 2017-04-29 21:09:56 +01:00
Amish Shah
c40252381b Deprecate all the things 2017-04-29 21:09:53 +01: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