Commit Graph

656 Commits

Author SHA1 Message Date
vzwGrey
874e94992b Fix reaction collector example (#1513) 2017-05-21 18:56:17 +02:00
Gus Caplan
0baa59b679 Internal API Request Rewrite (#1490)
* start rewrite

* converted guilds

* more changes

* convert GuildMember

* convert User and remove friend methods which kill people

* convert more stuff

* even more stuff

* make things nicer

* speed and fixes and stuff

* almost finished

* fix

* Update Client.js

* uwu

* Update RESTMethods.js

* message editing

* fix router

* fix issue with references

* message delete reason

* move message sending

* fix dm

* message splitting

* NO MORE REST METHODS

* Update Client.js

* Update WebhookClient.js

* remove all those endpoints from the constants

* Update ClientUser.js

* Update ClientUser.js

* fixes

* Update ClientUser.js

* complaiancy

* all sort of fixes

* merge master (#1)

* Fix Permissions now that member is deprecated (#1491)

* removing more deprecation leftovers (#1492)

* Fix MessageCollectors

* Fix awaitMessages (#1493)

* Fix MessageCollector#cleanup

* Fix MessageCollector#postCheck

* Add max option back for safety

* Update Invite.js (#1496)

* guild setPosition missing docs (#1498)

* missing docs

* update return docs

* indent

* switched .invites for the apirouter and invite.js

* make multiple options an object

* Update ClientUser.js

* fix nicks

* Update WebhookClient.js
2017-05-21 07:04:19 +02:00
Crawl
284bec80d4 Fix MessageCollectorOptions docs 2017-05-20 00:03:51 +02:00
bdistin
4aa734b9ef guild setPosition missing docs (#1498)
* missing docs

* update return docs
2017-05-16 16:11:11 +02:00
Gus Caplan
3fa87de594 Update Invite.js (#1496) 2017-05-16 15:25:42 +02:00
Crawl
4955b1ce5f Add max option back for safety 2017-05-16 04:58:13 +02:00
Crawl
8beefe66d5 Fix MessageCollector#postCheck 2017-05-16 04:47:53 +02:00
Crawl
20a267c12f Fix MessageCollector#cleanup 2017-05-15 01:33:10 +02:00
Daniel Odendahl
88444cdd26 Fix awaitMessages (#1493) 2017-05-15 01:04:57 +02:00
Crawl
a579967eb9 Fix MessageCollectors 2017-05-15 00:48:35 +02:00
SpaceEEC
37a3a6baf9 removing more deprecation leftovers (#1492) 2017-05-14 23:44:39 +02:00
bdistin
25096047f1 Fix Permissions now that member is deprecated (#1491) 2017-05-14 22:40:06 +02:00
Crawl
ca926ee404 Remove all deprecated methods / props 2017-05-14 20:15:55 +02:00
Gus Caplan
6ac2252794 make default avatar resolving better (#1484)
* Update Constants.js

* Update User.js

* Update Constants.js

* Update Constants.js
2017-05-13 17:41:32 +02:00
SpaceEEC
ff3e602134 Failing to resolve a role should reject and not throw an error (#1483) 2017-05-12 15:30:46 +02:00
meew0
83f2c62c3f Fix the mention example in the USERS_PATTERN doc comment
Previously it was a channel mention. Thanks @Hackzzila.
2017-05-10 13:11:21 +02:00
SpaceEEC
f95f18b586 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:24 +02:00
1Computer1
6566c0d3c5 Deprecate aliases (#1469) 2017-05-06 01:22:15 +02:00
SpaceEEC
5bfc688bb0 Using a traditional for loop rather than a for in loop for options.files (#1461) 2017-05-06 01:09:01 +02:00
SpaceEEC
e66fa145d2 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:12 +02:00
SpaceEEC
d9e5bdea19 added Invite#presenceCount and Invite#memberCount (#1460)
* added Invite#online and Invite#memberCount

* requested change
2017-05-05 23:24:02 +02:00
SpaceEEC
a685d24504 using correct properties for invites (#1467) 2017-05-05 23:19:07 +02:00
SpaceEEC
128b4ee3e8 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:54 +02:00
Gus Caplan
caf96339e0 Update GuildAuditLogs.js (#1456) 2017-05-04 00:50:08 +02:00
SpaceEEC
07623d49e2 Fix for sending files with Webhook class (#1449) 2017-05-02 06:58:42 +01:00
Amish Shah
a7c902c6cf New is also optional 2017-05-01 22:11:04 +01:00
Amish Shah
b7a81ed7e1 watch me, gus 2017-05-01 22:07:20 +01:00
Amish Shah
7da53af0c3 Improve GuildAuditLogs documentation by creating an AuditLogChange typedef 2017-05-01 21:08:15 +01:00
Gus Caplan
35ef9cd33d Add Guild#nameAcronym and make avatar/iconURLs into functions (#1144)
* Guild#iconURL(format, size);
* OAuth2Application#iconURL(format, size);
* User#iconURL(format, size);
2017-05-01 20:37:00 +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
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
Isabella
a02e10926d Stop using deprecated methods within discord.js (#1441)
* fix deprecation stuff

* fixed a check
2017-05-01 10:14:26 +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
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
8e5c600227 Make OAuth2Application backwards compatible again 2017-04-30 11:21:48 +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
1a69331f0c Merge branch 'master' of https://github.com/hydrabolt/discord.js 2017-04-29 21:09:56 +01:00