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
SpaceEEC
1e115efa56
fix fetchMentions' auth header, options and data mapping ( #1457 )
...
* fix fetchMentions' auth header, options and data mapping
* vscode strikes again
* switched to Util.mergeDefault
* vscode
* removed duplicated optionals and switched to instanceof
2017-05-06 01:04:05 +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
SpaceEEC
1fc6e3b91e
using correct properties for invites ( #1467 )
2017-05-05 23:19:25 +02:00
SpaceEEC
6cd55ed5c9
readded docs for Client#error and Client#ready ( #1466 )
2017-05-05 20:14:56 +02:00
SpaceEEC
7d7f1b2446
update GuildAuditLogs for MESSAGE_DELETE and fixed extras ( #1464 )
...
* update GuildAuditLogs for MESSAGE_DELETE and fixed extras
* correct oder of targets
2017-05-05 19:44:41 +02:00
Crawl
41e0be1db3
Endpoints.Guild(...).Emoji(...) should not use CDN ( #1462 )
2017-05-05 02:23:25 +02:00
Gus Caplan
712305dece
Update GuildAuditLogs.js ( #1456 )
2017-05-04 00:50:16 +02:00
Anxeal
e96daba7c0
Fix typo in RESTMethods.js ( #1455 )
...
Mentions should be written with a capital M
2017-05-03 20:36:22 +01:00
Anxeal
3a73628567
Fix typo in RESTMethods.js ( #1454 )
...
fetchMeMentions -> fetchMentions 🤔
2017-05-03 20:36:17 +01:00
Amish Shah
cdc355811e
New is also optional
2017-05-01 22:10:45 +01:00
Amish Shah
ce8dc85f78
watch me, gus
2017-05-01 22:09:14 +01:00
Amish Shah
2d416cca79
Improve GuildAuditLogs documentation by creating an AuditLogChange typedef
2017-05-01 21:07:46 +01:00
Cody A. Taylor
61a081faa5
Document flattenErrors keys param ( #1447 )
...
* Document flattenErrors keys param.
* Remove parens.
* Capitalise a letter
2017-05-01 20:47:45 +01:00
Gus Caplan
3bab4ec9fd
Add time methods to Audit Log entries ( #1443 )
...
* aaaaa
* Update GuildAuditLogs.js
2017-05-01 18:05:15 +01:00
aemino
2bf8a36077
Allow await endpoint stage to not error ( #1444 )
2017-05-01 18:01:28 +01:00
Amish Shah
c48f042785
silly hydar
2017-05-01 15:42:47 +01:00
Amish Shah
b8018d4b6d
Reconnect on 1000 if client didn't close
2017-05-01 15:32:40 +01:00
Amish Shah
6e4b744d03
Export ClientOAuth2Application
2017-05-01 15:27:44 +01:00
Amish Shah
135d9e3ea0
Expose GuildAuditLogs
2017-05-01 15:25:21 +01:00
Amish Shah
51a2e465bd
Let client know who closed the WebSocket
2017-05-01 15:24:02 +01:00
Amish Shah
2ace21c412
backwards compat docs
2017-05-01 15:10:11 +01:00
Amish Shah
140839128a
Fix ban delete days
2017-05-01 15:07:02 +01:00
Amish Shah
0f4983852e
Fix ban message delete days
2017-05-01 14:57:27 +01:00
Amish Shah
db45d99d0c
More deprecated stuff
2017-05-01 11:28:48 +01:00
Amish Shah
8bab9fb122
Add VIEW_AUDIT_LOG to Permissions docs
2017-05-01 11:15:09 +01:00
Isabella
a02e10926d
Stop using deprecated methods within discord.js ( #1441 )
...
* fix deprecation stuff
* fixed a check
2017-05-01 10:14:26 +01:00
Drahcirius
166161d6d3
ready event will now throw errors properly ( #1440 )
2017-05-01 08:43:35 +01:00
Amish Shah
892ba67d71
Emit packet handling errors to the error event and not the debug event
2017-05-01 07:56:13 +01:00
Crawl
c3be798663
Update GuildAuditLogs.js
2017-05-01 01:03:12 +02:00
Gus Caplan
7779069e32
add audit logs "extras" ( #1435 )
...
* add audit logs "extras"
* whoops
* Update GuildAuditLogs.js
2017-04-30 23:57:42 +01:00
Gus Caplan
1ddae43fed
Add class doc blocks to Audit Logs ( #1438 )
2017-04-30 23:57:06 +01:00
SpaceEEC
c5efa985fc
Readding Client#disconnect and docs for Client#reconnecting ( #1437 )
...
* readded docs for client#reconnecting and client#disconnect
* moved disconnect event emitting and clarified emitting reason
2017-05-01 00:16:02 +02:00
Amish Shah
0754ddbc34
Reset sequence when sessions are invalidated
2017-04-30 22:26:44 +01:00
Gus Caplan
37b1f38ebe
Make audit log entries a collection ( #1436 )
2017-04-30 21:25:22 +01:00
Amish Shah
c2566d230c
Wait undo that
2017-04-30 21:04:39 +01:00
Amish Shah
474a954938
Force deaf/mute properties to be booleans even when null data is received
2017-04-30 21:04:11 +01:00
Amish Shah
e460e5e853
Fix some stuff
2017-04-30 21:01:04 +01:00
Crawl
457b9600f2
Docs consistency plz
2017-04-30 13:16:19 +02:00
Crawl
3cb4aac65a
Remove unused util
2017-04-30 13:03:51 +02:00
Amish Shah
edf1a3e7b4
Undeprecate uws and fix support for it
2017-04-30 11:56:24 +01:00
Amish Shah
f20f49388d
Simplify data unpack logic
2017-04-30 11:40:16 +01:00
Amish Shah
007b1226c9
Rudimentary support for uws while it is deprecated
2017-04-30 11:36:20 +01:00
Amish Shah
8e5c600227
Make OAuth2Application backwards compatible again
2017-04-30 11:21:48 +01:00
Amish Shah
dd110f4824
Add example for creating VoiceBroadcasts
2017-04-30 11:04:41 +01:00
Amish Shah
81b176cfea
BaseOpusEngine should be private
2017-04-30 11:01:26 +01:00
aemino
5cad25ea69
Add Guild#me ( #1384 )
...
* Add Guild#me
(also did minor docs cleanup)
* Don't use Guild#member as there's nothing to resolve
* Update ClientDataResolver.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
2017-04-30 04:30:59 -04:00
Pg Biel
9a5de25d79
Emoji convenience methods ( #1378 )
...
* make branch
* stuff
* Consistency & remove role(s)
* kill me
* Doc changes
Requested by Crawl
* forgot 1
2017-04-30 04:51:15 +02:00
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
Schuyler Cebulskie
3f8c0a4d11
Move things
2017-04-29 20:56:40 -04:00
Schuyler Cebulskie
e2c8ba5be0
Allow MessageMentions#channels to function in DMs
2017-04-29 20:18:23 -04:00
Schuyler Cebulskie
aa35e21b84
Revert "Make MessageMentions#channels return an empty collection in DMs ( #1430 )"
...
This reverts commit 88aa947376 .
2017-04-29 20:00:36 -04:00
Gus Caplan
6f96cf7325
Use Target variables for consistency ( #1431 )
2017-04-30 00:36:26 +01:00
Amish Shah
ee37d859a4
dumb ass bug fix
2017-04-29 22:47:06 +01: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
Amish Shah
b0a3528411
sorry gus i borked
2017-04-29 20:00:05 +01:00
Amish Shah
5b2ca326d4
ESLint pls >.>
2017-04-29 18:07:48 +01:00
Amish Shah
f7d65991d5
Minor refactor of Actions
2017-04-29 17:56:36 +01:00
Amish Shah
dd8f77fcf0
Stop the EventEmitter debug warnings when fetching lots of guilds before ready
2017-04-29 17:46:36 +01:00
Amish Shah
584961b04b
Debug resume from connection not Client
2017-04-29 15:58:12 +01:00
Amish Shah
2e33bf583e
Try to fix StreamDispatchers ( #1387 )
2017-04-29 15:12:34 +01:00
SpaceEEC
88aa947376
Make MessageMentions#channels return an empty collection in DMs ( #1430 )
...
* Make MessageMentions#channels return an empty collection in DMs
* reduce code duplication and corrected docstring
2017-04-29 14:33:18 +01:00
stupid cat
d6b7d31047
Better ClientUser#setStatus for self bots ( #1428 )
...
* better setstatus for selfbots
* make both calls
* must return
* use setpresence, set invisible
2017-04-29 14:31:32 +01:00
Will Nelson
13672cc637
Export ReactionCollector and Collector ( #1426 )
2017-04-29 14:27:39 +01:00