Pascal
3df3741922
backport/fix(GuildDelete): disconnect voice and cleanup GuildChannels
2018-02-05 13:03:43 +01:00
Pascal
96904b1826
fix(AudioPlayer): add opus to destructured key of stream options
...
This fixes #2079 (VoiceConnection#playOpusStream being broken)
2018-02-05 10:42:47 +01:00
Lasse Niermann
1f14758e0c
docs(ClientUser): mark email field as user account only property ( #2306 )
...
* Store Mail - User Account Only
Added that info
* docs(ClientUser): mark email field as nullable
2018-02-01 20:06:59 +01:00
Lewdcario
52c402faea
fix(resolveColor): not interpreting DEFAULT correctly
2018-01-28 19:04:55 -06:00
Lewdcario
e978253896
fix(Webhook#send): incorrect docs + return
...
Two things:
* Documentation doesn't account for possible raw object return
* Allows the return to be a Message object as well, like the docs originally intended
2018-01-24 13:06:05 -06:00
Pascal
8df1ac9920
fix(startTyping): return, to not overwrite already existing entries
2018-01-22 14:09:27 +01:00
Cynthia Lin
00e2f39ea1
fix(client#voiceConnections): Incorrect docs description ( #2280 )
2018-01-20 22:09:39 -06:00
Pascal
b5ff309bf9
fix(CategoryChannel): set the type to 'category' and document its type
2018-01-20 23:27:18 +01:00
MaySoMusician
8cbefcc081
[v11.3.x] Fix param to setPresence in setActivity ( #2270 )
...
ClientUser#setPresence in master branch (latest) calls client.presences.setClientPresence, but that in v11.3 does not
so i change parameter sent to setPresence for clearing the game activity, from activity:null to game:null,
for now until setPresence gets updated
2018-01-18 02:39:54 -06:00
Isabella
932980e91f
fix(guild#createRole): incorrect guild reference
2018-01-16 08:28:08 -06:00
Isabella
f62fa05389
fix(Message#addReaction): incorrect regex ( #2247 )
2018-01-13 17:22:23 +00:00
Isabella
2efe2d28f2
fix(Channel#startTyping): less breaking ( #2232 )
...
* fix(Channel#startTyping): less breaking
* silent
* appelation suggestion
* space suggestion
2018-01-11 16:18:40 +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
Isabella
8226752098
fix(voiceStateUpdate): incorrect members.size ( #2231 )
2018-01-05 21:28:57 +00:00
Michel Nguyen
e883afa0ee
docs: fix guildChannel#toString() example ( #2203 )
...
* fix the docs
* don't log something what you don't log
2018-01-04 01:17:40 +01:00
SpaceEEC
659e89e8cd
feat: backport animated emojis support ( #2217 )
...
Commit: 84e4dd6a99
2018-01-04 01:16:50 +01:00
Isabella
c79823002b
docs: improve examples ( #2200 )
...
* docs: improve examples
another
* remove conflict
* some nuances
* backport
2018-01-04 01:14:36 +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
b3eb1bba24
backport(Channel#startTyping): returns Promise ( #2208 )
2018-01-04 01:02:22 +01:00
Yukine
fc5d4438f8
backporting the fix for RTP header extensions ( #2185 )
2017-12-23 12:29:06 +01:00
Isabella
6683c40a6f
fix(bulkDelete): stop rejections when filterOld=true ( #2178 )
...
* fix(bulkDelete): stop rejections when filterOld=true
* gus suggestion
2017-12-21 09:31:47 +01:00
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
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
bdistin
0d6b7ce641
Fix deny administrator edge case bug
...
(backport from permissions cleanup)
2017-09-03 17:43:15 +02: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 201ecd25a2
* Backported retry on 500 57b6980313
* Backported b8034525e3 and fa5c4efa2b
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
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
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
Gus Caplan
407500bf52
deprecate Guild#defaultChannel ( #1752 )
2017-08-04 10:44:35 +02:00
iCrawl
8a9b6cbdb5
Stop doubling the message key
2017-07-31 01:32:44 +02:00
iCrawl
bdc61a4068
Wrong operator in flattenErrors
2017-07-31 01:29:46 +02:00
SpaceEEC
a56a24d042
Fixed DiscordAPIError#message sometimes being undefined
2017-07-31 01:26:42 +02:00
bdistin
e7ebb23f14
Fix guildMembersChunk documents for v11.1-dev ( #1734 )
2017-07-30 15:00:01 +02:00
Crawl
46a50cb57c
Fix "shitty" shortcut
2017-07-28 05:20:28 +02:00
Crawl
b27198ebe5
Update nsfw prop
2017-07-28 04:53:36 +02:00
Crawl
26e5ef3205
Update deps and fix webpack
2017-07-16 14:34:23 +02:00
Gus Caplan
ed84d76a42
move nsfw to the new prop ( #1687 )
2017-07-16 14:06:51 +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
Gus Caplan
822c1f533c
Fix toLowerCase errors in GuildAuditLogs ( #1627 )
2017-06-29 19:53:25 +01:00
Drahcirius
4ce4dc019e
setTimeout should use args ( #1623 )
2017-06-29 19:53:11 +01:00
Will Nelson
f1a74f214e
make token not enumerable ( #1620 )
2017-06-29 19:52:58 +01:00
Gus Caplan
85ec7c64bc
update docs for discord api error ( #1575 )
...
* aaaaa
* Update DiscordAPIError.js
2017-06-29 19:52:44 +01:00
aemino
b5de89a973
Fix VoiceConnection#authenticateFailed race condition ( #1601 )
2017-06-29 19:52:22 +01:00
Mythic
ddfa57e96d
Improve Message's ID attribute documentation ( #1450 )
...
Remove the implication that a Message object's ID is unique only to the channel it was sent on
Message ID's are snowflakes, and as stated in Discord's API documentation, globally unique throughout Discord
2017-06-29 19:51:37 +01:00
SpaceEEC
e3232bdb2b
added Guild#setExplicitContentFilter ( #1583 )
2017-06-29 19:51:11 +01:00
SpaceEEC
86ec60bc00
fix merge conflict
2017-06-29 19:48:34 +01:00
Crawl
510ddab0f5
Fix createMessageCollector example
2017-06-08 14:50:34 +02:00
aemino
1ed6bbc4b4
Remove unused VoiceBroadcast#guaranteeOpusEngine ( fixes #1556 ) ( #1563 )
2017-06-05 06:54:56 +02:00
aemino
2116fba4c2
Opus engine fetching: don't ignore non-missing errors ( #1555 )
...
* Opus engine fetching: don't ignore non-missing errors
* typo fix
2017-06-01 10:32:12 +02:00
Amish Shah
b49266baa5
fml
2017-05-30 12:33:58 +01:00
Amish Shah
46b8a7d411
Correct documentation for VoiceConnection (see #1536 )
2017-05-30 12:33:50 +01:00
Snazzah
2f1eb71a3f
Add MEMBER_ROLE_UPDATE to returning 'UPDATE' array ( #1538 ) ( #1542 )
2017-05-29 23:55:42 +02:00
Gus Caplan
3ec08d5976
add nsfw options to 11.1 search ( #1540 )
...
* Update RESTMethods.js
* Update TextBasedChannel.js
2017-05-29 23:53:49 +02:00
Amish Shah
19d4d3bf2c
Fix #1528
2017-05-27 19:21:03 +01:00
Gus Caplan
bb2a35a849
they can be more than just string/num/bool ( #1448 )
2017-05-21 21:25:06 +02:00
vzwGrey
8e80b6660c
Fix reaction collector example ( #1513 )
2017-05-21 21:15:23 +02:00
Gus Caplan
433c5e5702
you can't mutate a socket event in some browsers (webpack fix) ( #1512 )
2017-05-21 05:20:51 +02:00
Crawl
a8d34e340b
Relink permission#FLAGS on docs
2017-05-20 21:05:45 +02:00
bdistin
c903929b6b
guild setPosition missing docs ( #1498 )
...
* missing docs
* update return docs
2017-05-16 16:12:43 +02:00
Gus Caplan
28a29d5d9f
Update Invite.js ( #1496 )
2017-05-16 15:26:32 +02:00
Gus Caplan
6eced4d465
fix infinte loop issue ( #1488 )
2017-05-14 19:34:51 +02:00
SpaceEEC
45bc653988
Failing to resolve a role should reject and not throw an error ( #1483 )
2017-05-12 15:31:04 +02:00
aemino
e3c3a4fd60
GuildMember#setVoiceChannel fix ( #1482 )
...
Looks like someone forgot to remove the full channel object from the PATCH payload.
2017-05-12 06:42:18 +02:00
Drahcirius
798018713b
invalid token errors not rejected properly ( #1478 )
...
* ready event will now throw errors properly
* ws login rejection fix
2017-05-11 00:40:47 +02:00
meew0
ea1b5beea6
Fix the mention example in the USERS_PATTERN doc comment
...
Previously it was a channel mention. Thanks @Hackzzila.
2017-05-11 00:40:39 +02:00
SpaceEEC
bb0ee59718
Handing promise rejections from GuildAuditLogs#build to the user ( #1474 )
...
* handing guildauditlog's promise rejections to the user
* Returning a new Promise to resolve a Promise.all is unnecessary.
Also for the docs, it returns a Promise<GuildauditLogs>, not GuildAuditLogs directly.
* totally did not removed that line
2017-05-09 00:19:46 +02:00
1Computer1
294f5ea5c8
Deprecate aliases ( #1469 )
2017-05-06 01:24:53 +02:00
Crawl
fd7cb41ee6
Using a traditional for loop rather than a for in loop for options.files ( #1461 )
2017-05-06 01:14:27 +02:00