Commit Graph

3091 Commits

Author SHA1 Message Date
Isabella 9f0417c09d fix(Guild#createChannel): default to text (#2168)
update docs


doc fixes


real fix


stuf
2017-12-12 06:33:48 +01:00
Isabella 1c34819d47 fix(UserGuildSettingsUpdate): not creating settings with new guilds (#2150) 2017-12-06 07:10:30 +01:00
Isabella 862b2ec3d4 Backport: Guild#createChannel (#2145)
* Backport: Guild#createChannel

* this should not return a buffer
2017-12-06 07:08:46 +01:00
Isabella d705a0c7d0 fix(VoiceChannel#edit): incorrect bitrate (#2144) 2017-12-04 05:38:06 +01:00
Isabella fb6d14d099 fix(guild#createChannel): new channel returning null (#2143)
forgot to return channel.
2017-12-04 05:37:51 +01:00
bdistin 6a222ec6e9 Backport: erlpack dep fix (#2142) 2017-12-01 18:50:33 +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 e40c3f8cd0 fix(GuildAuditLogs): backport (#2123) 2017-11-21 09:45:26 +01:00
Isabella 22da595b50 fix(DMChannel): messages not being cached (#2122) 2017-11-21 09:43:53 +01:00
Isabella cce2480bb5 feature(CategoryChannel): backport (#2117)
* feature(CategoryChannel): backport


fix


no

* ????

* bad ternary
2017-11-19 23:19:46 -05:00
Isabella b274dba6ec fix(GuildMember): permissions.missing is not a function (#2118) 2017-11-18 17:10:59 -05:00
Gus Caplan 69b7d5d58e Fix #1903 (#1904) 2017-09-07 16:25:55 +01:00
Cynthia Lin 97b013de46 Fix whitespace in 11.2.0 welcome docs. (#1887) 2017-09-04 18:36:43 -04:00
Amish Shah d9f772cdc1 11.2.1 2017-09-03 19:54:59 +01:00
Amish Shah 42c195c857 Merge branch '11.1-dev' into stable 11.2.0 2017-09-03 18:13:53 +01:00
iCrawl 77c54a94f2 Fix typo in landing page 2017-09-03 18:42:57 +02:00
iCrawl 4778a47cd4 Update docs landing page 2017-09-03 18:40:49 +02:00
iCrawl 18de265fcc lock version numbers, prepare release 2017-09-03 18:03:13 +02:00
iCrawl a47c30e31a update submodule 2017-09-03 17:58:46 +02:00
bdistin 0d6b7ce641 Fix deny administrator edge case bug
(backport from permissions cleanup)
2017-09-03 17:43:15 +02:00
Crawl 9cdd494db6 Revert "Fix deny administrator edge case bug (#1878)" (#1879)
This reverts commit dbe1ae972b.
2017-09-03 17:41:07 +02:00
bdistin dbe1ae972b Fix deny administrator edge case bug (#1878)
(backport from permissions cleanup)
2017-09-03 16:39:27 +01:00
SpaceEEC 4df2adc801 Backporting #1863, allowing the afk and systemchannel to be set to null (#1865)
* fix(Guild): Allow the afk and system channel to be set to null.

* make the getter return null
2017-09-01 16:14:20 +02:00
SpaceEEC 95e22c2f12 feat/fix: add DiscordAPIError#path and fixed Burst request handler handling api errors (#1867) 2017-09-01 16:05:22 +02:00
SpaceEEC 425efe1fe4 Consistently store message reactions keyed under their unicode (#1852) 2017-08-30 02:15:24 +02:00
SpaceEEC 56fe70266e Allow Message#edit to accept a RichEmbed and fixed RichEmbed#file's type (#1829) 2017-08-25 19:50:01 +02: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
iCrawl bce5b677ad Backport passing a collection to a collector 2017-08-24 00:35:44 +02:00
Gus Caplan 85d195da52 Fix docs on resolveImage 2017-08-23 05:40:58 +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
Crawl a85fc91630 make webpack over 9000 times better (#1816)
* webpack stuff

* even better

* Update browser.js
2017-08-22 19:57:59 +02:00
SpaceEEC 0b22d9a774 Backporting Attachments (#1817) 2017-08-22 00:39:27 +02:00
SpaceEEC f7664b01a2 Backports (#1813)
* Backported OAuth2Application https://github.com/hydrabolt/discord.js/commit/201ecd25a2e017c0be74ed2c68abc2c323813a87

* Backported retry on 500 https://github.com/hydrabolt/discord.js/commit/57b69803132355b506f9919f37a55915ccdf86d3

* Backported https://github.com/hydrabolt/discord.js/commit/b8034525e3da2a5bd05fab44841ee3b0149ff70c and https://github.com/hydrabolt/discord.js/commit/fa5c4efa2bc545bc4df6f449dde343a6dcfdcfe2
2017-08-21 22:25:21 +02:00
SpaceEEC be4ccb3686 Backporting audit log reasons and createRole with position for 11.2 (#1810)
* Backporting audit log reasons and createRole with position for 11.2

* Sending kick reason via header rather than via query
2017-08-21 22:21:18 +02:00
SpaceEEC 618fa2b104 functions for setTimeout should get the context bound and not applied (#1673) 2017-08-20 22:26:04 +02:00
Crawl a7e5e53e5d Fix ClientUser#settings not showing up in the documentation (#1757) 2017-08-20 22:18:40 +02:00
SpaceEEC c01e9ad828 No longer double increment the reaction count when the client reacts (#1755) 2017-08-20 22:17:44 +02:00
Raphael 29aef18de8 updated docs for <ReactionEmoji>.toString() so it now uses send instead sendMessage in example (#1761) 2017-08-20 22:17:36 +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
Crawl c33b78da23 Remove reasons for now 2017-08-20 22:01:17 +02:00
Gus Caplan e76ebb4fcb Guild/systemchannel (#1799)
* add cool system channel

* Update Guild.js

* Update Guild.js

* Update Guild.js
2017-08-20 21:59:20 +02:00
iCrawl b3216f26d6 Update deps 2017-08-20 21:39:27 +02:00
SpaceEEC 2809eb74ca Always send a type now when updating own presence (#1785) 2017-08-17 00:16:09 +02:00
Crawl cd4a69d009 Add Guild#nameAcronym 2017-08-12 11:50:15 +02:00
iCrawl 5dc83a1b03 Git pls 2017-08-12 11:28:47 +02:00
SpaceEEC 2611efe9c1 No longer double increment the reaction count when the client reacts (#1755) 2017-08-12 11:25:29 +02:00
Crawl cba4cc2400 Audio bitrate support (#1439)
* Audio bitrate support

Note: not implemented for VoiceBroadcasts

* Fix default args, auto bitrate

* Late night typos are the best

* Changes bitrate to kbps for VoiceChannel stuff

* Add methods to manipulate bitrate while encoding
2017-08-12 11:23:47 +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
aemino 7aa791eaaa Ignore setSpeaking requests when VC isn't connected (#1638) 2017-08-12 11:16:11 +02:00