Commit Graph
925 Commits
Author SHA1 Message Date
Enchanted13 47707d245d Changed return type of Guild.defaultChannel (#1079)
The default channel for a Guild is always the first TextChannel in the Guild, it can't be a VoiceChannel.
2017-01-09 15:35:11 +00:00
Gus Caplan 5e7ae847de switch to proper querystring parser because why not (#1077) 2017-01-08 14:49:56 -05:00
ooookai 4a7284b86e move function getRoute(url) into class APIRequest (#1065)
this.route = getRoute(this.url);
  >>>
this.route = this.getRoute(this.url);
2017-01-08 19:34:06 +00:00
Zack Campbell b68283e57a Make _array & _keyArray non-enumerable (#1075)
Because Map has no enumerable properties
2017-01-08 11:59:45 +00:00
Amish Shah fde3a976aa Revert "This expands the consistency of .find and .exists to include the id property" (#1074) 2017-01-08 10:17:10 +00:00
Jacob 2a668ac997 This expands the consistency of .find and .exists to include the id property (#1072)
* provide a more consistent api for .find

* remove random warning

* make code more concise
2017-01-08 09:02:44 +00:00
Gus Caplan 42527ea969 fix message#isMemberMentioned (#1061)
* fix this

* e

* Update Message.js
2017-01-07 03:38:23 -05:00
Schuyler Cebulskie e5e36d9111 Rename snowflake class to prevent naming conflicts 2017-01-07 03:37:16 -05:00
Zack Campbell f76b47184a Fix typo in MessageSearchOptions typedef (#1068) 2017-01-07 03:31:15 -05:00
Schuyler Cebulskie add3c1a8ee Clean up docs slightly 2017-01-07 03:29:52 -05:00
Schuyler Cebulskie 8cff77726a Detardify snowflake docs/organisation 2017-01-07 03:22:55 -05:00
Gus Caplan a66b2b7ec5 add more things to clientuser (#1066)
* add more things to clientuser

* add desc
2017-01-05 16:38:48 +00:00
HyperCoder fdc8050188 Fix <Guild>.large (#1062)
* Fix <Guild>.large

Would either be true or undefined.

* Update Guild.js

* To make hydrabolt happy

* Update Guild.js
2017-01-05 15:43:57 +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 d47f9d202b update search to have more useful returns (#1060) 2017-01-03 23:49:19 +00:00
Gus Caplan 7cbe81e71a fix editing with an array (#1059)
* fix editing with an array

* fix build

* put this back because reasons

* i'm having one of those nights
2017-01-03 06:59:34 +00:00
Schuyler Cebulskie 2c26d79f50 Replace custom ArrayBuffer converter with Buffer.from 2017-01-02 01:51:26 -05:00
Michael Huang 3b9b06227e Fix _removeReaction's reaction lookup (#1045)
* Fix _removeReaction's `this.reactions` lookup

* Use emoji.identifier for reaction collection keys
2016-12-30 21:06:05 -05:00
Schuyler Cebulskie 054d4655c1 Rearrange identifier 2016-12-30 21:05:37 -05:00
Gus Caplan 2b25641270 add option for guilds per shard, and fix type (#1053) 2016-12-30 21:03:23 -05:00
Schuyler Cebulskie 4447e367f6 Fix other BufferResolvables with base64 2016-12-30 16:22:29 -05:00
Schuyler Cebulskie 2ea744c9d1 Reestablish the natural order and heirarchy of all things 2016-12-30 16:19:15 -05:00
Schuyler Cebulskie eaf2091c2f Rearrange some methods and improve search description 2016-12-30 16:17:31 -05:00
Schuyler Cebulskie 43283eeaec Clean up search examples slightly 2016-12-30 16:15:51 -05:00
Amish Shah 023ac0a7fe Add search() stubs for docs 2016-12-30 18:59:34 +00:00
Amish Shah 4c8e4fde6f Fix remove reaction endpoint 2016-12-30 18:31:48 +00:00
Amish Shah 50dc9addf1 Fix ESlint error, remove 'long' module import 2016-12-30 17:28:23 +00:00
Gus Caplan bde6749d65 clean up search (#1049)
* add more search stuff

* clean up the options

* fix link hostname

* use some resolvers

* fix type

* move the trasform to a seperate file

* pass this param

* move typedef
2016-12-30 17:21:03 +00:00
Gus Caplan da32c2ec3d add more search stuff (#1046)
* add more search stuff

* clean up the options

* fix link hostname

* use some resolvers

* fix type
2016-12-30 17:14:31 +00:00
Gus Caplan 258e4b9085 fix setting avatar to buffer (#1048) 2016-12-30 17:00:16 +00:00
Gus Caplan beffb390e6 Add search (#1043)
* add search

* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Schuyler Cebulskie f0adf8f122 Fix User#defaultAvatarURL in Node 6 2016-12-30 01:46:56 -05:00
bdistin 9e70d6279f Fix erroneous docs examples (#1042) 2016-12-29 22:01:18 -05:00
Gus Caplan 22b1c425ac add ClientUser.settings (#1041)
* add user settings

* Update Ready.js
2016-12-29 18:58:39 +00:00
Schuyler Cebulskie 6e51a44f92 Small doc updates 2016-12-29 11:19:30 -05:00
Zack Campbell 665ef21c85 Update DMChannel, GroupDMChannel for docs (#1038) 2016-12-29 11:04:41 -05:00
Schuyler Cebulskie 3e3de51545 Update message sending docs 2016-12-29 11:01:27 -05:00
Schuyler Cebulskie ba77e69edf Document boolean for code option 2016-12-29 10:51:05 -05:00
Schuyler Cebulskie 86ffc86324 Update updateMessage with the new code logic 2016-12-29 10:49:59 -05:00
Schuyler Cebulskie 650acbf662 Improve codeblock lang 2016-12-29 10:44:24 -05:00
Amish Shah 75d45bd587 Fix sending codeblocks without a lang 2016-12-29 14:18:39 +00:00
Amish Shah 6d7293e3c5 Fix sending an array of messages 2016-12-29 14:00:54 +00:00
Schuyler Cebulskie 95790dcf08 Update User#equals doc 2016-12-29 03:21:22 -05:00
Schuyler Cebulskie 1b76333b8b Add missing @typedef line 2016-12-29 03:04:11 -05:00
Schuyler Cebulskie fe7ed523b3 Improve ClientUser presence method docs 2016-12-29 03:01:34 -05: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
Amish Shah 7ede44bc00 Add CloseEvent external 2016-12-29 00:27:40 +00:00
bdistin ea798eaaf3 Update Missing Permission Resolvables (#1035) 2016-12-28 18:27:02 -05:00
Zack Campbell e4bae99747 Update GuildResolvable typedef (#1034)
To reflect the resolver supporting Guild ID strings
2016-12-28 16:50:32 -05:00
Schuyler Cebulskie bbeef44e66 Update ClientDataResolver.js 2016-12-28 16:32:14 -05:00