Commit Graph

85 Commits

Author SHA1 Message Date
Amish Shah
474a954938 Force deaf/mute properties to be booleans even when null data is received 2017-04-30 21:04:11 +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
Isabella
a652901d60 Throw Error for non role-resolvables (#1322)
* throw error for role names/integers being provided for role resolvables

* Update RESTMethods.js

* Update RESTMethods.js

im really bad

* Update RESTMethods.js

* removed new promise reject

ty gus

* Update RESTMethods.js

* move error to guildmember.addRole method

* Update GuildMember.js
2017-04-19 18:57:54 +02:00
Will Nelson
ca34c43ba0 Add message reaction collectors & abstract collectors (#1335)
* message reaction collectors

* docs cleanup

* abstraction

* remove pointless method

* rename reaction collector creator method

* docs and stuff

* fix docs & build

* backwards compatibility, fix docs

* fix docs

* remove deprecated comments

* betterer docs again

* Fix documentation

* Fix Alias to not break depreciated code
2017-04-19 18:52:40 +02:00
Schuyler Cebulskie
136cab240d Add new ESLint rules 2017-03-17 01:23:39 -04:00
bdistin
14ae7cdf17 [Docs] Evaluated Permissions References (#1250)
* Docs / Permissions Overwrites Reference

* Docs / Evaluated Permissions Reference

* Clarify role.permissions is not evaluated

* Update Role.js
2017-03-09 18:32:44 -05:00
Schuyler Cebulskie
21babf8859 Update GuildMember#hasPermission(s) to match Role 2017-03-07 02:53:12 -05:00
Schuyler Cebulskie
427eec8ccb Fix ESLint failure 2017-03-06 02:27:04 -05:00
Schuyler Cebulskie
16fe48d405 Overhaul Permissions utilities (EvaluatedPermissions no more) 2017-03-06 02:22:42 -05:00
1Computer1
e7b0afbd1f Add color role, hoist role getters to GuildMember (#1188) 2017-03-01 04:53:12 -05:00
Kelvin Wu
01d8d32ea9 Add typedef for GuildmemberEditData. (#1230)
* Add typedef for GuildmemberEditData.

* Farm commits

* Make terms consistent.
2017-03-01 04:36:17 -05:00
Programmix
a029999b09 Doc fixes, mostly pertaining to Snowflakes (#1218)
GUS!!!! @GusCaplan
2017-02-24 15:33:51 -05:00
Gus Caplan
59ff1d99ba fix types for snowflakes (#1156)
* fix types for snowflakes

* Update TextBasedChannel.js
2017-02-03 21:37:58 -05:00
Gus Caplan
8da915f6a1 expose createDM (#1151)
* expose createDM

* Update User.js

* in v12 we are removing these, kay?

* Update GuildMember.js

* Update User.js
2017-01-30 22:56:14 -05:00
Pg Biel
c7f5b44e03 Add User.lastMessage, GuildMember.lastMessage and TextBasedChannel.lastMessage (#1135)
* Add User.lastMessage

* User.lastMessage and GuildMember.lastMessage

* User, GuildMember and TextBasedChannel lastMessage

* Update MessageCreate.js
2017-01-26 21:24:08 +00:00
Gus Caplan
495264761c Add snowflake utils (#1064)
* snowflakes

* use proper binary for snowflake example

* fix jsdoc errors

* remove dupe
2017-01-05 15:41:42 +00:00
Gus Caplan
ed8fcf651a Centralise message sending logic in one method, remove sendTTSMessage, add client shortcut in RESTMethods (#1031)
* start wip rewrite of sending/editing messages

* pass the build, modify the edit method to fit the new system

* simplify the applyToClass method

* change handling of file options

* add back message splitting

* i couldn't help myself

* add some smart message options

* clean up, add sexy options

* fix indentation

* fix up splitting

* add \b

* add back old methods for hydar happiness

* clean up more

* move code handling to the rest method

* clean up this.rest.client

* Update TextBasedChannel.js

* add docs back for the bad methods

* fix reply in group dms

* srsly gawdl3y

* make code better

* fix changes for gawdl3y

* fix checking

* remove getter

* make code handling more robust

* k

* fix up sendEmbed docs

* stupid

* fix up more docs because aaaaa

* no more pls
2016-12-28 23:58:30 -05:00
Zack Campbell
265021bfa5 Add sendEmbed to GuildMember for docs (#1028)
* Add sendEmbed to GuildMember for docs

* Update GuildMember.js
2016-12-27 22:35:11 -05:00
Cole
586d652c16 Quality of life changes (#968)
* + Added function to get a user's default avatar
+ Added HOST constant to Constants
+ Added assets endpoint
+ Added quality of life function to get a user's avatar or default avatar
+ Added quality of life function to get member's nickname or username

* * Fixed invocation of a getter.

* Fixed lint issue

* Made the API constant use the HOST constant for DRY-ness
Changed DOC comment to be more descriptive

* Update GuildMember.js
2016-12-12 22:34:19 -05:00
Gus Caplan
b177aefdd6 add user/member lastMessageID (#959)
* add user.lastMessageID

* stupid

* add member.lastMessageID
2016-12-06 23:46:32 -05:00
Gus Caplan
638e51a18c support new guild member role endpoints for cleaner role updates (#901)
* support new roles endpoints

* use promise chaining

* properties man

* Update RESTMethods.js

* Update RESTMethods.js

* Update RESTMethods.js

* Update RESTMethods.js
2016-12-02 23:46:55 -05:00
Schuyler Cebulskie
2488e1a00f Improved the definition of structures' client properties 2016-12-02 19:52:27 -05:00
Schuyler Cebulskie
90304aa7d6 Fix loads of JSDoc type issues 2016-11-12 20:52:37 -05:00
Programmix
fe3914658a Grammar cleanup (#875)
This commit:
* fixes inconsistencies (primarily regarding capitalization)
* fixes non-proper nouns that were improperly capitalized
* fixes reminents from not-so-meticulous copy+paste jobs
2016-11-05 23:57:34 +00:00
Schuyler Cebulskie
73261646fc Fix ESLint warnings 2016-10-30 17:23:39 -04:00
Amish Shah
1fc9676ba5 Fix presences, damn it hydra 2016-10-26 22:09:11 +01:00
Schuyler Cebulskie
62b93659e6 Clean up and simplify some code 2016-10-17 00:02:54 -04:00
Schuyler Cebulskie
51f30d6e4c Add nickname mention format to GuildMember.toString 2016-10-02 01:51:14 -04:00
Amish Shah
7c26603773 Fix presences probably ¯\_(ツ)_/¯ 2016-10-01 15:27:56 +01:00
Schuyler Cebulskie
66beeb9535 Add role position comparison methods 2016-10-01 03:32:08 -04:00
Schuyler Cebulskie
93cf34a814 I found some more. 2016-10-01 02:58:32 -04:00
Schuyler Cebulskie
d1e07674b8 Make GuildMember.kickable/bannable take role IDs into account 2016-10-01 02:54:25 -04:00
Schuyler Cebulskie
db815d4d9f I'm gonna need more derps to fix. 2016-10-01 02:47:17 -04:00
Schuyler Cebulskie
d246982a61 Fix another derp wooo 2016-10-01 01:42:13 -04:00
Schuyler Cebulskie
a441aaf546 Fix derp in GuildMember.kickable/bannable 2016-10-01 01:27:11 -04:00
bdistin
428ee2f718 Added .missingPermissions() (#756)
* Added .missingPermissions()

* Added .missingPermissions()

* Fixed docs for .missingPermissions()

* Fixed Travis CI trailing spaces?

* Fixed Travis CI trailing spaces?
2016-09-30 22:08:19 +01:00
Schuyler Cebulskie
973dbe8266 Add more @readonly and clean up some stuff 2016-09-27 20:07:33 -04:00
Schuyler Cebulskie
1e57c968dd Made date/timestamps consistent and less shitty 2016-09-27 19:46:53 -04:00
Amish Shah
03651fd6e3 Change how presences are handled 2016-09-25 14:16:03 +01:00
Jacob
126865384e Compensate for API's stupid-ass positions in highestRole (#721)
* fix edge cases of highestRole not returning the highest role

* fix line length

* move space

* Fix formatting
2016-09-21 01:31:33 -04:00
Schuyler Cebulskie
3441e2384f Fix tiny-ass typo 2016-09-19 14:42:22 -04:00
Schuyler Cebulskie
3e114b9af7 Normalise some GuildMember values 2016-09-19 14:41:36 -04:00
Schuyler Cebulskie
039315a9a3 Replace local usages of GuildMember.id with user.id 2016-09-19 01:44:46 -04:00
Schuyler Cebulskie
9288cd8563 Replace usages of owner.id with ownerID, and fix GroupDMChannel.equals 2016-09-19 01:43:24 -04:00
Schuyler Cebulskie
b8e3094b14 Add GuildMember.highestRole/kickable/bannable 2016-09-19 01:31:53 -04:00
Schuyler Cebulskie
774b4d4694 Fix GuildMember.hasPermission(s) explicit for owner 2016-09-12 00:08:12 -04:00
Schuyler Cebulskie
46b7628d59 Made hasPermission(s) docs a bit more consistent 2016-09-12 00:04:07 -04:00