Gus Caplan
a82d9f1fbb
add multi-file support ( #1268 )
...
* add multi-file support
* (╯°□°)╯︵ ┻━┻
(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻
* stupid git web rebase editor - Gus2k17
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2017-03-15 15:10:49 +01:00
SpaceEEC
6b26d28c06
Fix ( #1262 )
...
Not ignoring the filterOld boolean when a number is being passed instead of collection or array
2017-03-14 22:58:21 +01:00
Crawl
4ef0ec491c
Add arrow-parens eslint rule & fix inconsistencies
2017-03-13 15:56:00 +01:00
Motion
cee0d58fb8
Added docs warning for acceptInvite method ( #1267 )
...
Added docs warning for acceptInvite method (user account only iirc)
2017-03-13 07:04:31 +00:00
1Computer1
bbd89585c6
Add RichEmbed fields error handling ( #1243 )
...
* RichEmbed fields error handling
* Fix consistency
* Update RichEmbed.js
2017-03-09 20:58:46 -05: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
Gus Caplan
2897692cf1
fix created timestamp precision ( #1241 )
...
* fix created timestamp precision
* perf
* Update Snowflake.js
* gawdl3y was butthurt
* Update Snowflake.js
2017-03-09 18:31:31 -05:00
Schuyler Cebulskie
21babf8859
Update GuildMember#hasPermission(s) to match Role
2017-03-07 02:53:12 -05:00
Schuyler Cebulskie
3e5096f9fe
Update Role#hasPermission, and deprecate hasPermissions
2017-03-06 19:58:42 -05:00
Schuyler Cebulskie
df2333ac82
Fix Role#hasPermission
2017-03-06 19:38:58 -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
Schuyler Cebulskie
7473fd513e
Remove InviteOptions typedef, rephrase
2017-03-01 04:48:26 -05:00
SpaceEEC
fc42a46e5b
Invite options ( #1223 )
...
* test
* updated descripton
* Update GuildChannel.js
2017-03-01 04:45:05 -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
lipgloss
0e6b5e9193
Change update to create ( #1231 )
2017-02-27 07:03:24 +00:00
Schuyler Cebulskie
f3a7f59824
Several improvements
...
- Rename Guild#updateChannelPositions -> setChannelPositions
- Allow Guild#setChannelPositions to take ChannelResolvables
- Prioritise ClientDataResolver#resolveChannel's string case
- Minor cleanup
2017-02-25 15:29:32 -05:00
Programmix
a029999b09
Doc fixes, mostly pertaining to Snowflakes ( #1218 )
...
GUS!!!! @GusCaplan
2017-02-24 15:33:51 -05:00
Amish Shah
70b35c85d6
Merge branch 'indev-prism'
2017-02-23 20:19:26 +00:00
Amish Shah
8a2ec437e5
Merge branch 'master' into indev-prism
2017-02-22 20:37:59 +00:00
Gus Caplan
4c9d8d6cd7
add lots of group dm features ( #1208 )
...
* group dm stuff
* minor doc changes
2017-02-22 20:33:20 +00:00
Joschua Schneider
5c2086b351
Allow presence updating to allow null games ( #1186 )
...
* Adding resetGame functionallity
`setGame` method would allways result in an Object passed to `setPresence`.
Passing { game: null } (supported by discords WebSocket gateway to reset the current Game) to `setPresence` would still result in a Game Object sent to the endpoint.
Explicitly setting `game` to null should overwrite the `game` object provided by `localPresence` or `client.presence`.
This was neither supported by `setGame` or `setPresence`.
* Missing semicolons to resetGame and setPresence
* Fixing trailing spaces, commas and semicolons
* Moving resetGame functionality into setGame method
Minification of if statement in setPresence.
Removing resetGame method and adding a case for `game === null` to setGame method
* Adding missing space in setGame method
* Fix docs
2017-02-22 20:24:39 +00:00
lipgloss
f068010e96
Implement 'Modify Guild Channel Positions' ( #1198 )
...
* Adding shuffleArray method to utils
* Shuffle channels functionality on guild.
* Comment fix
* Removing shuffle functionality and replacing with a simple update
* Code review changes to method/variable names
* Update comment reference to channelId as well
* Updating jsdoc with typedef of ChannelPosition
2017-02-22 20:24:05 +00:00
Gus Caplan
566135d25b
move permission stuff to the resolver ( #1185 )
2017-02-22 20:11:11 +00:00
Gus Caplan
61e12c637b
Add support for more OAuth features ( #1203 )
2017-02-22 20:09:40 +00:00
Programmix
d09dfa4c37
Capitalize channel type constants ( #1209 )
2017-02-22 20:08:47 +00:00
Schuyler Cebulskie
b0338df7db
Add more required permissions to Guild#addMember
2017-02-21 15:09:46 -05:00
Schuyler Cebulskie
8d1bc30e40
Clean up dd6dd6f
2017-02-21 15:07:54 -05:00
Zack Campbell
db5259cdf1
Add RichEmbed#attachFile ( #1202 )
...
* Add RichEmbed#attachFile
Mostly for attaching local images that can be accessed within the embed image/author icon/footer icon via `attachment//filename.png` and the like.
* Update docstring to reflect valid param types
* Update TextBasedChannel.js
* Update RichEmbed.js
* Update RichEmbed.js
2017-02-21 14:29:37 -05:00
Kelvin Wu
d870b27ece
Message#member should be a nullable. ( #1205 )
2017-02-21 13:49:20 -05:00
Jamelele
1273bb42ec
Doc fixes ( #1197 )
...
* Improve ban/unban examples
* Fix example comments
* Replace nondescript 'user' parameter with 'some user ID'
* Update Guild.js
* Update Guild.js
2017-02-19 16:06:18 -05:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
Mike
dd6dd6fb59
Added support for adding users to guild 2 ( #1179 )
...
* Added support for adding users to guild
added RESTMethods#AddGuildMemberOptions and Guild#addMember with typedef
AddGuildMemberOptions to be able to add user to guild as a member
through `PUT/guilds/{guild.id}/members/{user.id}`
https://discordapp.com/developers/docs/resources/guild#add-guild-member
* fixing lint errors
* Changes based on discussion
* Changes based on discussion 2
* Changes based on discussion 3
Yay! More changes.
2017-02-08 21:04:39 +00:00
Will Nelson
cdb911f2af
update setImage documentation ( #1177 )
2017-02-08 17:18:10 +00:00
Alexander
cc3e7b26b1
Add convenience function RichEmbed.addBlankField ( #1139 )
2017-02-08 17:17:13 +00:00
Alex
ab5e57d94b
Create Emoji requires a base64 data uri ( #1154 )
2017-02-06 14:19:03 -05:00
Schuyler Cebulskie
d6f17a9319
Merge branch 'master' into indev-prism
2017-02-06 01:54:31 -05:00
Amish Shah
26becb570b
Fix #1168 (.hasPermission)
2017-02-04 20:58:39 +00:00
Gus Caplan
59ff1d99ba
fix types for snowflakes ( #1156 )
...
* fix types for snowflakes
* Update TextBasedChannel.js
2017-02-03 21:37:58 -05:00
Funnbot
0b5eeb08f3
clone topic in channel.clone() ( #1157 )
...
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
2017-02-03 21:37:32 -05:00
Gus Caplan
1e94a9e2a4
serious role position stuff ( #1159 )
...
* serious role position stuff
* kill meh
* Update Role.js
* Update Guild.js
* Update Role.js
2017-02-01 22:02:16 +00:00
Schuyler Cebulskie
e8ac18489e
Merge branch 'master' into indev-prism
2017-02-01 15:29:45 -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
Gus Caplan
565c640bc6
Add role support to emoji creation ( #1141 )
...
* add role support to emojis
* specify types
2017-01-30 22:47:27 -05:00
Alex
18729b25c7
Add support to edit emojis ( #1142 )
...
* Add support to edit emojis
* Fixes for coding style.
* Add and use guildEmoji constants for updateEmoji
* Just use the Constant
* Fix typo in edit documentation
* Specify property types
* Fix ridiculous typo.
* Update Emoji.js
2017-01-30 22:47:05 -05:00
Programmix
5059c59a31
Message patching: clear mention collections ( #1138 )
...
* Message patching: clear mention collections
Fixes #1089
When discord sends an array of mentions, it is a full list of mentions -- therefore, we should clear the old mention collection. The same goes for when we re-analyze the message for channel mentions.
* Use Collection.clear() instead of new Collection
2017-01-29 19:02:54 +00:00
Gus Caplan
2beb77ab5c
check if a guildchannel is deletable ( #1143 )
...
* Update GuildChannel.js
* eghhh
* Update GuildChannel.js
2017-01-28 10:07:53 +00: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
Programmix
ba11f76284
Fix patching message reactions ( fixes #1071 ) ( #1137 )
2017-01-26 21:20:40 +00:00
Programmix
c1a5bee61f
GuildMembersChunk packet handler hotfix ( #1125 )
...
* GuildMembersChunk packet handler hotfix
* Add limit, resolve properly if a query is used
* Document new GuildMemberChunk param
2017-01-24 21:55:36 +00:00
Gus Caplan
4b2053133d
more profile stuff ( #1131 )
2017-01-24 21:53:26 +00:00
Gus Caplan
306ea97f99
fix guild member fetching edge cases ( #1115 )
...
* thx4tipprogrammixluvubye
* consistancy
* make this loop for some reason
* so impatient
2017-01-21 16:37:28 +00:00
Gus Caplan
0300601649
remove redundant editing ( #1116 )
...
* remove redundant editing
* update docs
2017-01-19 17:11:24 +00:00
Schuyler Cebulskie
b13fdcc8d3
Merged master into indev-prism
2017-01-18 19:23:18 -05:00
Gus Caplan
3f4cbd07dd
add voice region getting ( #1108 )
...
* add voice region getting
* clean up this mess
* add docstrings
* Update VoiceRegion.js
* Update RESTMethods.js
2017-01-18 19:14:44 -05:00
Gus Caplan
ff92905848
add warning about which class to use for embeds ( #1107 )
...
* Update MessageEmbed.js
* Update MessageEmbed.js
2017-01-18 10:55:06 -05:00
Peter Vu
93d8ec3e87
VoiceChannel#full fix on no limit channel for joinable ( #1106 )
...
* VoiceChannel#full fix on no limit channel for joinable
* Update VoiceChannel.js
2017-01-16 23:36:29 -05:00
Hackzzila
f8b9bf6884
Fix reaction events ( #1105 )
...
* Fix reaction events
* Made it better
* one line ftw
2017-01-16 22:52:25 +00:00
Amish Shah
ba465bc680
Merge branch 'master' into indev-prism
2017-01-15 14:20:32 +00:00
Programmix
d10ca8e7ba
Add VoiceChannel#full and improve joinable/join permission checks ( #1100 )
...
* Improve voice channel join permission checks
* Update ClientVoiceManager.js
2017-01-14 23:32:17 -05:00
Programmix
7cb5b22ebb
@Gawdl3y dun goofed ( #1099 )
2017-01-14 20:03:26 -05:00
Gus Caplan
48be401330
add clientuser acceptinvite ( #1081 )
...
* add clientuser acceptinvite
* Update RESTMethods.js
* Update ClientUser.js
* Update ClientUser.js
* Update RESTMethods.js
2017-01-14 21:25:12 +00:00
Gus Caplan
7f4846c826
Add option to filter old messages in TextBasedChannel#bulkDelete ( #1090 )
...
* add filtering for messages older than two weeks
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update TextBasedChannel.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update TextBasedChannel.js
2017-01-14 16:21:23 -05:00
Gus Caplan
78bf402e8e
allow users and members to not be cached ( #1097 )
2017-01-14 21:20:09 +00:00
Amish Shah
098ad195bd
Merge branch 'master' into indev-prism
2017-01-14 21:00:13 +00:00
Gus Caplan
e216fc7a81
stop spamming api, and kill typing when a guild isn't there anymore ( #1096 )
2017-01-14 17:31:52 +00:00
Amish Shah
f7a4dee4e1
Merge branch 'master' into indev-prism
2017-01-13 18:58:37 +00:00
Gus Caplan
5ac410f352
Cleanup webhooks ( #1094 )
...
* clean up webhooks and fix sending messages with webhooks
* whoops
* fix up options
* Update Webhook.js
* Update Webhook.js
* Update Webhook.js
* fix docstring
2017-01-13 18:48:12 +00:00
Schuyler Cebulskie
74fd0421ba
Add missing descriptions
2017-01-13 00:18:00 -05:00
Gus Caplan
0d4eab8d24
add color resolvable, and color constants from the client ( #1080 )
...
* add color resolvable, and color constants from the client
* fix up docs
* Update ClientDataResolver.js
* add easter eggs
* Update ClientDataResolver.js
* Update RESTMethods.js
2017-01-12 18:43:22 +00:00
Gus Caplan
a3091f5262
Handle 4011 ws event code ( #1083 )
...
* 4011
* Update WebSocketManager.js
* smh gawdl3y
2017-01-11 22:59:09 +00:00
Schuyler Cebulskie
b2822c584a
Minor doc updates
2017-01-10 19:43:25 -05:00
Schuyler Cebulskie
5caa7df1d8
Add centralised reply option to message options
2017-01-10 19:25:05 -05:00
Schuyler Cebulskie
8b0e5aad38
Fix sendEmbed with array content
2017-01-10 19:22:03 -05:00
Gus Caplan
c37cd3fd91
clean up webhooks and fix sending messages with webhooks ( #1078 )
...
* clean up webhooks and fix sending messages with webhooks
* whoops
* fix up options
* Update Webhook.js
* Update Webhook.js
* Update Webhook.js
2017-01-10 16:52:12 -05:00
Amish Shah
b5026909a1
Remove DMChannel.bulkDelete and GroupDMChannel.bulkDelete
2017-01-09 18:20:05 +00:00
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
42527ea969
fix message#isMemberMentioned ( #1061 )
...
* fix this
* e
* Update Message.js
2017-01-07 03:38:23 -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
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
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
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
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
Gus Caplan
3451367591
fix the everyone role mentioning ( #1032 )
2016-12-28 19:04:54 +00: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
Schuyler Cebulskie
758c801dd5
Change to function declaration
2016-12-26 15:40:34 -05:00
Alexander
b1473b1e4c
Change RichEmbed to take StringResolvables ( #1010 )
...
Changed RichEmbed to take StringResolvables for all title, name, value and
description arguments.
Also changed a few lines in setColor to make sure that the value
assigned to this.color is always a number.
2016-12-26 15:39:07 -05:00
Amish Shah
cd657be8be
Add functionality for GuildEmoji events
2016-12-26 19:21:00 +00:00
Amish Shah
2ab5bae69a
change let to const
2016-12-23 18:38:48 +00:00
Amish Shah
e63432c18e
Fix editing role positions ( fixes #864 )
2016-12-23 16:45:47 +00:00
Gus Caplan
e6a041241b
cleanup ws ratelimiting, and apirequest ( #957 )
...
* cleanup ws ratelimiting, and apirequest
* cleanup timestamps
* clean up timestamps
2016-12-23 14:37:43 +00:00
Gus Caplan
cecb0aee02
Update User#setEmail/setPassword/setUsername ( #991 )
...
* fix some things with user updates and tokens and such
* fix stupid
* Update ClientUser.js
* Update ClientUser.js
2016-12-22 15:12:29 -05:00
Gus Caplan
84503c8877
add User#dmChannel ( #1005 )
...
* add User#DMChannel
* Update User.js
* Update User.js
2016-12-20 23:36:43 +00:00
Gus Caplan
e392107369
add ClientUser#fetchMentions ( #999 )
...
* add ClientUser#fetchMentions
Signed-off-by: Gus Caplan <gus@localhost.localdomain>
* ugh
* Update ClientUser.js
* Update ClientUser.js
* Update ClientUser.js
2016-12-19 02:16:27 -05:00
Gus Caplan
a0a3989e59
fix issue with uncached channels and adding members ( #1001 )
...
* fix this thing
* fix a silly
* Update Guild.js
2016-12-19 02:11:55 -05:00
Schuyler Cebulskie
361547a588
Fix a bunch of capitalisation issues
2016-12-15 20:10:38 -05:00
Gus Caplan
2e7472bb1a
just webpack things ( #988 )
2016-12-14 19:40:47 -05:00
Alexander
264ee8e7f1
Equals updates ( #987 )
...
* Docs update
Changed the param names and param descriptions to be consistent.
* Added === comparison
Changed Presence.equals and Game.equals to first compare using ===
* Collection.equals fix
Now returns false when collection is undefined, instead of crashing
💯
2016-12-14 17:10:34 -05:00
Alexander
906bb3c5f3
Utilise Collection#equals for structures' equals ( #986 )
...
Utilizing Collection.equals in GuildChannel.equals
Utilizing Collection.equals in GroupDMChannel.equals
2016-12-14 15:35:40 -05:00
Schuyler Cebulskie
bef0523ebf
Capitalise ID in Guild#applicationId
2016-12-14 13:04:40 -05:00
Schuyler Cebulskie
4e76251aa2
Fix some Gus stuff
2016-12-14 12:37:23 -05:00
Gus Caplan
8139bef4e2
add some missing properties ( #978 )
...
* add premium to profile
* add other missing stuff
2016-12-14 17:23:22 +00:00
Perry Berman
78026df1df
fix defaultAvatarURL ( #983 )
...
looks like someone forgot how to caps
2016-12-13 20:43:28 -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
bdistin
3193df792e
Added Missing Author URL Option ( #979 )
2016-12-12 22:29:39 -05:00
Gus Caplan
d766e727a1
add GuildChannel#clone ( #973 )
...
* add GuildChannel#clone
* e
2016-12-11 09:07:52 +00:00
bdistin
710d3db94f
RichEmbed Tweaks/Improvements ( #964 )
...
* RichEmbed Tweaks/Improvements
Changed .addTimestamp() to .setTimestamp() to bring it inline with all other single value settings.
Changed Field value to StringResolveable from String to bring it inline with typical sendMessage functionality.
* Lint Fix
* Remove Default, Add check for undefined
2016-12-09 22:10:50 -05:00
Slamakans
b79a91b3a9
new errors for richembed yay ( #966 )
...
* Update faq.md (#949 )
* fix docs
* Revert "fixed typo in documentation" (#950 )
* new errors for richembed yay
Simplified the parsing for color arrays.
Throwing some errors on values that would result in Bad Requests.
Changed setAuthor and setFooter's icon parameter to icon_url to match
the embed object's property name.
Changed the docs for setFooter to reflect that icon_url is optional.
* changed docs instead of arg names
* capitalization
2016-12-09 22:09:55 -05:00
Gus Caplan
c5f93eb44e
Add more MessageEmbed stuff ( #970 )
...
* this is why wrapping data 1:1 is a bad idea
* ffs
* whoever wrote role.hexColor is a bad, bad person
* Update MessageEmbed.js
* Update MessageEmbed.js
2016-12-09 22:07:34 -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
Zack Campbell
37bfdd154c
Fix embed footer text length error ( #955 )
2016-12-05 20:50:25 -05:00
Zack Campbell
daa79b7f97
Add more errors for RichEmbed builder char limits ( #954 )
...
* Add more errors for RichEmbed builder char limits
Might as well if we're erroring on number of fields when that's the one limit that doesn't actually throw a bad request.
* Fix name.length check in previous commit
* Update RichEmbed.js
* Update number of fields error message
2016-12-05 20:33:58 -05:00
Schuyler Cebulskie
977e29ceba
👏 @Programmix
2016-12-04 20:25:24 -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
Programmix
8b7ef0c850
Add Message.fetchWebhook ( #947 )
...
* Add Message.fetchWebhook
* Update Message.js
2016-12-02 22:59:44 -05:00
Schuyler Cebulskie
c0aa6bd30f
Work around Node's module loading
2016-12-02 22:55:37 -05:00
Schuyler Cebulskie
6adc8a9d0d
Move a getter around
2016-12-02 22:47:12 -05:00
Programmix
676a895da7
Add Message - webhookID, isMemberMentioned ( #946 )
...
* Add Message - webhookID, isMemberMentioned
* Update Message.js
* Update Message.js
* Update Message.js
* Update Message.js
2016-12-02 22:35:01 -05:00
Gus Caplan
6cfbf76406
add more embed stuff ( #939 )
...
* add fun embed stuff
* add more docstrings
* fix gawdl3y
* Update RichEmbed.js
2016-12-02 21:59:38 -05:00
Schuyler Cebulskie
2488e1a00f
Improved the definition of structures' client properties
2016-12-02 19:52:27 -05:00
Gus Caplan
edfb27f428
switch to cdn endpoints, add guild splash url ( #932 )
2016-12-01 19:33:15 -05:00
Amish Shah
6043a1f83a
Fix #937 (guild member presence before READY)
2016-11-30 20:31:07 +00:00
Schuyler Cebulskie
57af84bc95
Clean up Guild#setRolePosition slightly
2016-11-27 20:09:41 -05:00
Schuyler Cebulskie
6dc93a0184
Simplify Role#setPosition
2016-11-27 20:03:44 -05:00
Schuyler Cebulskie
8e7cb7fc4e
Revert "Escape the backslash ( #931 )"
...
This reverts commit 5fb4e257c8 .
2016-11-27 18:31:27 -05:00
Vap0r1ze
5fb4e257c8
Escape the backslash ( #931 )
2016-11-27 22:38:42 +00:00
Schuyler Cebulskie
cc9e484276
Fix a thing Gus noticed
2016-11-27 16:23:17 -05:00
Amish Shah
e2932c05f2
whoops fix derp
2016-11-26 22:43:41 +00:00
Amish Shah
27e77d3839
Fix Role.setPosition not returning Role (addresses #902 )
2016-11-26 22:42:33 +00:00
Will Nelson
4ae1f63a97
fix message.edits ( #924 )
2016-11-26 21:59:18 +00:00
Schuyler Cebulskie
f6a60581c4
Remove even more stuff from web dists
2016-11-20 22:40:06 -05:00
Schuyler Cebulskie
93948328b4
Fix some Gus code
2016-11-17 02:51:46 -05:00
Schuyler Cebulskie
49fdc331a7
Fix formatting
2016-11-17 02:49:24 -05:00
Gus Caplan
b2bc844ed7
Add new MessageEmbed stuff ( #898 )
...
* fix
* Update MessageEmbed.js
* man
* Update MessageCreate.js
* Update MessageEmbed.js
* Update MessageEmbed.js
* clean up, add class
* my dreams are slowly becoming memes
* aghhh
* safety
* Update MessageEmbed.js
* Update MessageEmbed.js
* Update MessageEmbed.js
* dammit
2016-11-17 02:42:50 -05:00
Programmix
5ed8098af8
Clean up reactions, add remove all reactions ( #890 )
...
* Clean up reactions, add remove all reactions
* Reorganize reactions
* Re-add Gawdl3y's precious little inline
* Update Message.js
2016-11-13 02:29:26 -05:00
Gus Caplan
c041b1bc23
fix these things ( #895 )
...
* fix these things
* fix enormous stupid
2016-11-13 02:05:55 -05:00
Gus Caplan
27270a3bad
add embed support! ( #894 )
...
* add embed support!
* document message embeds
* make gawdl3y happy
* make edit great again
* make docs better
* Update Message.js
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2016-11-13 01:05:13 -05:00
Schuyler Cebulskie
9d0fcb3936
Fix Message.reply example
2016-11-12 22:15:47 -05:00
Schuyler Cebulskie
c50de74310
Rename Message.addReaction -> Message.react
2016-11-12 22:12:26 -05:00
Schuyler Cebulskie
2c76f5437b
Inline a line, woohoo
2016-11-12 22:08:43 -05:00
Schuyler Cebulskie
99b8d8f031
Clean up docgen code and some reaction stuff
2016-11-12 22:07:17 -05:00
Schuyler Cebulskie
c65d7a10ec
Fix another JSDoc type issue
2016-11-12 21:10:28 -05:00
Schuyler Cebulskie
90304aa7d6
Fix loads of JSDoc type issues
2016-11-12 20:52:37 -05:00
Schuyler Cebulskie
318bb52c36
Clean up presence constructor
2016-11-12 17:46:11 -05:00
Schuyler Cebulskie
ce132d5f54
Make bot/user account warnings MOAR CONSISTENT!!one!
2016-11-12 17:15:17 -05:00
Amish Shah
544540fb02
Change Role.manageable to Role.editable
2016-11-06 16:49:14 +00:00
HyperCoder
7d02e73a26
Add <Role>.manageable ( #878 )
2016-11-06 16:43:39 +00:00
Slamakans
5dc30d6812
Nullable permission overwrites ( #869 )
...
Made it possible to pass null to GuildChannel.overwritePermissions's
PermissionOverwriteOptions to blank the permission out.
2016-11-06 10:43:31 +00: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
Programmix
9a61de1493
Document GuildChannel.edit, add VoiceChannel.setUserLimit, fix typo ( #866 )
2016-11-01 01:42:05 -04:00
Programmix
6dc95cd084
Add support for notes ( #860 )
...
* Add support for notes
* Ensure consistency with notes from ready payload
* Add getter method for users
* Minor tweaks
* Update warning messages
* More minor fixes
2016-10-30 23:06:09 -04:00
Schuyler Cebulskie
73261646fc
Fix ESLint warnings
2016-10-30 17:23:39 -04:00
Schuyler Cebulskie
d6f55adf52
Add missing exports for reaction stuff
2016-10-30 17:05:18 -04:00
Schuyler Cebulskie
85330769a7
Refactor OAuth application stuff
2016-10-30 16:55:08 -04:00
Schuyler Cebulskie
589c44327a
Make bot/user account notices consistent
2016-10-30 16:41:39 -04:00
Schuyler Cebulskie
5fa9e3548b
Rename ClientDataResolver.resolveFile -> resolveBuffer
2016-10-30 16:29:56 -04:00
Schuyler Cebulskie
60e0d507f0
Clean up nearly all promises to utilise chaining, other small fixes
2016-10-30 16:27:28 -04:00
Schuyler Cebulskie
8306d50bd8
Clean up a bunch of promise stuff
2016-10-30 12:47:17 -04:00
Programmix
c42e7a15aa
Update documentation (add missing typedefs) ( #861 )
2016-10-30 00:08:32 -04:00
Hackzzila
e80f06a059
3 PRs in one day! ( #851 )
2016-10-27 22:19:32 +01:00
Hackzzila
30105536a6
ESLint warnings ( #852 )
2016-10-27 22:19:20 +01:00
Hackzzila
c9dbf1f7f0
OAuth info stuff ( #849 )
...
* OAuth info stuff
* fix docs
* oops
2016-10-27 21:50:04 +01:00
Amish Shah
b15896e0a4
Add limit param to reaction.fetchUsers
2016-10-27 21:28:03 +01:00
Amish Shah
756d7fc2c1
Fix example
2016-10-27 17:22:11 +01:00
Amish Shah
9cba1bc6d0
remove users from message reactions
2016-10-27 17:16:40 +01:00
Amish Shah
dd9c291508
Add reaction fetching of users
2016-10-27 16:58:06 +01:00
Amish Shah
8e505ed349
Add Message Reaction me
2016-10-27 16:30:02 +01:00
Amish Shah
d129457624
Improve emoji support
2016-10-27 16:12:02 +01:00
Amish Shah
81059885a2
Start work on adding reaction support
2016-10-27 15:22:42 +01:00
Schuyler Cebulskie
ab6750d06d
Make docs catches use console.error
2016-10-26 21:37:19 -04:00
Amish Shah
1fc9676ba5
Fix presences, damn it hydra
2016-10-26 22:09:11 +01:00
Gus Caplan
c6bcf69dc3
added User#fetchProfile ( #835 )
...
* add User#fetchProfile
* fix merge conflicts?
2016-10-26 16:23:39 +01:00
Gus Caplan
60a911e4a0
add clientUser#createGuild ( #832 )
...
* add clientUser#createGuild merge docs
* almost caused a memory leak!
* muh triggers
2016-10-26 15:59:15 +01:00
Amish Shah
35ac80024a
Rename some events (mainly guild events)
2016-10-26 15:52:40 +01:00
Amish Shah
968883ec35
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 14:19:39 +01:00
Amish Shah
0c4a4023ce
Fix setting guild role positions ( #751 )
2016-10-26 14:19:36 +01:00
Schuyler Cebulskie
c96d5ad30e
Optimise everyone/here replacing
2016-10-25 19:01:56 -04:00
Schuyler Cebulskie
526430b51a
Revert "Fix #837 "
...
This reverts commit add52ce62d .
2016-10-25 18:49:12 -04:00
Amish Shah
add52ce62d
Fix #837
2016-10-25 22:03:04 +01:00
Amish Shah
0f8e8dddff
fix presence updating
2016-10-25 21:40:53 +01:00
Amish Shah
6093dac554
Fix #776 (guildMemberAdd firing for existing members)
2016-10-24 15:57:07 +01:00
Amish Shah
d42ac98339
Fix #775 (permission overwrites not taking into account previous values)
2016-10-24 15:47:31 +01:00
Gus Caplan
44bae385c2
update clientUser#setAvatar ( #819 )
...
* WHO DID THIS
* e
* some people have base64 fetishes i guess
Signed-off-by: Gus Caplan <fluffyrobotcheese@gmail.com>
2016-10-24 01:09:38 -04:00
Schuyler Cebulskie
c9c6e8a357
Added note about bot accounts to fetchMessage
2016-10-23 14:59:04 -04:00
Gus Caplan
3e1425af04
allow TextBasedChannel#bulkDelete to take a number ( #821 )
...
* useful
* update docs
* Update TextBasedChannel.js
* update docs
* fix docs
* Update TextBasedChannel.js
2016-10-23 14:51:54 -04:00
Gus Caplan
422b90c711
add way more friend shit ( #815 )
2016-10-22 16:25:55 -04:00
Schuyler Cebulskie
d0463926c4
Add maxMatches CollectorOption
2016-10-18 21:23:39 -04:00
Gus Caplan
9c8eb2dfc3
lets all be friendly! ( #809 )
...
* lets all be friendly!
* fix doc
* Update ClientUser.js
* Update ClientUser.js
2016-10-18 01:36:25 -04:00
Gus Caplan
bd5540314b
add message@#type
2016-10-17 21:24:16 -05:00
Schuyler Cebulskie
62b93659e6
Clean up and simplify some code
2016-10-17 00:02:54 -04:00
Gus Caplan
e04dbbdb82
add clientuser#friends ( #807 )
...
* add client#friends
* Update Ready.js
* Update Client.js
* move friends to client.user
* Update ClientUser.js
* Update ClientUser.js
2016-10-16 21:28:17 -04:00
Schuyler Cebulskie
fc307fab8a
Remove unnecessary array conversions
2016-10-16 21:14:59 -04:00
Schuyler Cebulskie
7e0f98ec68
MOAR SIMPLIFICATION
2016-10-15 01:45:13 -04:00
Schuyler Cebulskie
f2555132fe
Simplify sendCode lang
2016-10-15 01:29:46 -04:00
Schuyler Cebulskie
fe2192d544
Thanks for overriding the MessageOptions typedef, Gus 😒
2016-10-15 00:12:37 -04:00
Gus Caplan
50a1d1cbef
Add VoiceChannel.joinable/speakable ( #802 )
...
* add some getters to voice channels
* Update VoiceChannel.js
* Update VoiceChannel.js
* Update VoiceChannel.js
2016-10-14 18:58:48 -04:00
Gus Caplan
299484ff68
allow overwritePermissions to take a role id ( #792 )
...
* allow overwritePermissions to take a role id
* Fix typo
2016-10-11 20:29:29 -04:00
Gus Caplan
e48d7d52f1
add webhook#sendSlackMessage ( #788 )
2016-10-10 01:56:18 -04:00
Schuyler Cebulskie
9230b8866b
Merge branch 'master' into indev
2016-10-10 02:45:10 -04:00
comp500
f292e7002f
fix proxyURL ( #783 )
2016-10-09 22:44:38 -04:00
Schuyler Cebulskie
29b33bffaa
Rearrange and clean up more webhook stuff
2016-10-09 15:50:50 -04:00
Schuyler Cebulskie
e7745a0af5
Clean up some webhook stuff
2016-10-09 15:30:46 -04:00
Schuyler Cebulskie
bd7ff36b66
Allow infinite messageCacheMaxSize
2016-10-09 15:22:14 -04:00
Schuyler Cebulskie
7a53f70978
Rename maxMessageCache -> messageCacheMaxSize
2016-10-09 15:16:54 -04:00
Schuyler Cebulskie
e3b2f1f3da
Fix require path
2016-10-09 15:08:21 -04:00
Schuyler Cebulskie
7b571f9729
Add escapeMarkdown util function
2016-10-09 14:32:48 -04:00
Gus Caplan
1c4ed4547f
adds new WebhookClient and allows you to fetch channel webhooks and such without being "over the top" ( #768 )
...
* start blocking out client
* proto webhookclient
* wee working webhooks
* it's all working
* run docs
* fix jsdoc issues
* add example for webhookClient
* add example in the examples place
* fix docs
2016-10-07 19:09:41 +01:00
Schuyler Cebulskie
8d777db1d1
Clean up status type error
2016-10-03 20:27:41 -04:00
Schuyler Cebulskie
e24c9c271e
Quite possibly fix annoying bug Evie was complaining about
2016-10-03 20:25:39 -04:00
Schuyler Cebulskie
51f30d6e4c
Add nickname mention format to GuildMember.toString
2016-10-02 01:51:14 -04:00
Programmix
d35372d3e9
Fix MessageCollector.next edge case ( #765 )
2016-10-02 00:23:35 -04:00
Programmix
1fcc618532
Fix removeListener call ( #762 )
2016-10-01 16:22:32 -04:00
Programmix
34168eb832
Create MessageCollector.next ( #761 )
...
Allows using await with message collectors (ES7)
Hydrabolt approved™
2016-10-01 20:29:15 +01:00
Amish Shah
7c26603773
Fix presences probably ¯\_(ツ)_/¯
2016-10-01 15:27:56 +01:00
Amish Shah
ab15c45d96
fixed role stuff
2016-10-01 11:21:35 +01:00
Schuyler Cebulskie
9063aa8abf
Merge master
2016-10-01 03:44:43 -04:00
Schuyler Cebulskie
2acfb16cb8
Fix Guild.emojis doc
2016-10-01 03:41:49 -04: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
Schuyler Cebulskie
c2c477834f
Add Role.setMentionable
2016-09-30 22:48:25 -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
155b4383d2
No, Hydra! Bad!
2016-09-27 22:13:04 -04:00
Gus Caplan
aed75e1f9a
Add full guild emoji functionality ( #749 )
...
* all the emoji stuff
* fix things for hydra 😘
* feck i need to stop committing on github
* update docs again
* Butts
2016-09-27 20:44:09 -04:00